PluginManager/PluginManager.py

changeset 5555
5ece4e830780
parent 5395
56efc13e456e
child 5588
6ba512d9f46a
equal deleted inserted replaced
5554:c477ae02bf5f 5555:5ece4e830780
1032 """ 1032 """
1033 return pluginName in self.__activeModules or \ 1033 return pluginName in self.__activeModules or \
1034 pluginName in self.__onDemandActiveModules 1034 pluginName in self.__onDemandActiveModules
1035 1035
1036 ########################################################################### 1036 ###########################################################################
1037 ## Specialized plugin module handling methods below 1037 ## Specialized plug-in module handling methods below
1038 ########################################################################### 1038 ###########################################################################
1039 1039
1040 ########################################################################### 1040 ###########################################################################
1041 ## VCS related methods below 1041 ## VCS related methods below
1042 ########################################################################### 1042 ###########################################################################
1295 @param errors list of SSL errors (list of QSslError) 1295 @param errors list of SSL errors (list of QSslError)
1296 """ 1296 """
1297 ignored = self.__sslErrorHandler.sslErrorsReply(reply, errors)[0] 1297 ignored = self.__sslErrorHandler.sslErrorsReply(reply, errors)[0]
1298 if ignored == E5SslErrorHandler.NotIgnored: 1298 if ignored == E5SslErrorHandler.NotIgnored:
1299 self.__downloadCancelled = True 1299 self.__downloadCancelled = True
1300
1301 ########################################################################
1302 ## Methods to clear private data of plug-ins below
1303 ########################################################################
1304
1305 def clearPluginsPrivateData(self, type_):
1306 """
1307 Public method to clear the private data of plug-ins of a specified
1308 type.
1309
1310 Plugins supporting this functionality must support the module function
1311 clearPrivateData() and have the module level attribute pluginType.
1312
1313 @param type_ type of the plugin to be activated (string)
1314 """
1315 for name, module in \
1316 list(self.__onDemandActiveModules.items()) + \
1317 list(self.__onDemandInactiveModules.items()) + \
1318 list(self.__activeModules.items()) + \
1319 list(self.__inactiveModules.items()):
1320 if getattr(module, "pluginType", "") == type_:
1321 if hasattr(module, "clearPrivateData"):
1322 module.clearPrivateData()
1323 # TODO: document this in the plug-ins paper
1300 1324
1301 # 1325 #
1302 # eflag: noqa = M801 1326 # eflag: noqa = M801

eric ide

mercurial