31 from EricWidgets.EricMainWindow import EricMainWindow |
31 from EricWidgets.EricMainWindow import EricMainWindow |
32 from EricWidgets.EricApplication import ericApp |
32 from EricWidgets.EricApplication import ericApp |
33 |
33 |
34 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired |
34 from EricNetwork.EricNetworkProxyFactory import proxyAuthenticationRequired |
35 try: |
35 try: |
36 from EricNetwork.EricSslErrorHandler import EricSslErrorHandler, EricSslErrorState |
36 from EricNetwork.EricSslErrorHandler import ( |
|
37 EricSslErrorHandler, EricSslErrorState |
|
38 ) |
37 SSL_AVAILABLE = True |
39 SSL_AVAILABLE = True |
38 except ImportError: |
40 except ImportError: |
39 SSL_AVAILABLE = False |
41 SSL_AVAILABLE = False |
40 |
42 |
41 import Globals |
43 import Globals |
390 |
392 |
391 if os.path.exists(self.pluginRepositoryFile): |
393 if os.path.exists(self.pluginRepositoryFile): |
392 self.__repositoryMissing = False |
394 self.__repositoryMissing = False |
393 f = QFile(self.pluginRepositoryFile) |
395 f = QFile(self.pluginRepositoryFile) |
394 if f.open(QIODevice.OpenModeFlag.ReadOnly): |
396 if f.open(QIODevice.OpenModeFlag.ReadOnly): |
395 from EricXML.PluginRepositoryReader import PluginRepositoryReader |
397 from EricXML.PluginRepositoryReader import ( |
|
398 PluginRepositoryReader |
|
399 ) |
396 reader = PluginRepositoryReader(f, self.addEntry) |
400 reader = PluginRepositoryReader(f, self.addEntry) |
397 reader.readXML() |
401 reader.readXML() |
398 self.repositoryList.resizeColumnToContents(0) |
402 self.repositoryList.resizeColumnToContents(0) |
399 self.repositoryList.resizeColumnToContents(1) |
403 self.repositoryList.resizeColumnToContents(1) |
400 self.repositoryList.resizeColumnToContents(2) |
404 self.repositoryList.resizeColumnToContents(2) |