881 @return dictionary with name as key and display string as value |
881 @return dictionary with name as key and display string as value |
882 (dictionary of string) |
882 (dictionary of string) |
883 """ |
883 """ |
884 pluginDict = {} |
884 pluginDict = {} |
885 |
885 |
886 for name, module in \ |
886 for _name, module in \ |
887 list(self.__onDemandActiveModules.items()) + \ |
887 list(self.__onDemandActiveModules.items()) + \ |
888 list(self.__onDemandInactiveModules.items()): |
888 list(self.__onDemandInactiveModules.items()): |
889 if getattr(module, "pluginType") == type_ and \ |
889 if getattr(module, "pluginType") == type_ and \ |
890 getattr(module, "error", "") == "": |
890 getattr(module, "error", "") == "": |
891 plugin_name = getattr(module, "pluginTypename") |
891 plugin_name = getattr(module, "pluginTypename") |
907 |
907 |
908 @param type_ type of the plugin (string) |
908 @param type_ type of the plugin (string) |
909 @param name name of the plugin type (string) |
909 @param name name of the plugin type (string) |
910 @return preview pixmap (QPixmap) |
910 @return preview pixmap (QPixmap) |
911 """ |
911 """ |
912 for modname, module in \ |
912 for _modname, module in \ |
913 list(self.__onDemandActiveModules.items()) + \ |
913 list(self.__onDemandActiveModules.items()) + \ |
914 list(self.__onDemandInactiveModules.items()): |
914 list(self.__onDemandInactiveModules.items()): |
915 if getattr(module, "pluginType") == type_ and \ |
915 if getattr(module, "pluginType") == type_ and \ |
916 getattr(module, "pluginTypename") == name: |
916 getattr(module, "pluginTypename") == name: |
917 if hasattr(module, "previewPix"): |
917 if hasattr(module, "previewPix"): |
1087 values. Each tuple contains the vcs name (string) and vcs display |
1087 values. Each tuple contains the vcs name (string) and vcs display |
1088 string (string). |
1088 string (string). |
1089 """ |
1089 """ |
1090 vcsDict = {} |
1090 vcsDict = {} |
1091 |
1091 |
1092 for name, module in \ |
1092 for _name, module in \ |
1093 list(self.__onDemandActiveModules.items()) + \ |
1093 list(self.__onDemandActiveModules.items()) + \ |
1094 list(self.__onDemandInactiveModules.items()): |
1094 list(self.__onDemandInactiveModules.items()): |
1095 if getattr(module, "pluginType") == "version_control": |
1095 if getattr(module, "pluginType") == "version_control": |
1096 if hasattr(module, "getVcsSystemIndicator"): |
1096 if hasattr(module, "getVcsSystemIndicator"): |
1097 res = module.getVcsSystemIndicator() |
1097 res = module.getVcsSystemIndicator() |
1348 Plugins supporting this functionality must support the module function |
1348 Plugins supporting this functionality must support the module function |
1349 clearPrivateData() and have the module level attribute pluginType. |
1349 clearPrivateData() and have the module level attribute pluginType. |
1350 |
1350 |
1351 @param type_ type of the plugin to clear private data for (string) |
1351 @param type_ type of the plugin to clear private data for (string) |
1352 """ |
1352 """ |
1353 for name, module in \ |
1353 for _name, module in \ |
1354 list(self.__onDemandActiveModules.items()) + \ |
1354 list(self.__onDemandActiveModules.items()) + \ |
1355 list(self.__onDemandInactiveModules.items()) + \ |
1355 list(self.__onDemandInactiveModules.items()) + \ |
1356 list(self.__activeModules.items()) + \ |
1356 list(self.__activeModules.items()) + \ |
1357 list(self.__inactiveModules.items()): |
1357 list(self.__inactiveModules.items()): |
1358 if getattr(module, "pluginType", "") == type_: |
1358 if getattr(module, "pluginType", "") == type_: |