957 getPluginHeaderEntry(module, "pluginType", "") == type_ |
957 getPluginHeaderEntry(module, "pluginType", "") == type_ |
958 and getPluginHeaderEntry(module, "error", "") == "" |
958 and getPluginHeaderEntry(module, "error", "") == "" |
959 ): |
959 ): |
960 plugin_name = getPluginHeaderEntry(module, "pluginTypename", "") |
960 plugin_name = getPluginHeaderEntry(module, "pluginTypename", "") |
961 if plugin_name: |
961 if plugin_name: |
962 if hasattr(module, "displayString"): |
962 pluginDict[plugin_name] = getPluginHeaderEntry( |
963 try: |
963 module, "displayString", plugin_name |
964 disp = module.displayString() |
964 ) |
965 except TypeError: |
|
966 disp = getPluginHeaderEntry(module, "displayString", "") |
|
967 if disp != "": |
|
968 pluginDict[plugin_name] = disp |
|
969 else: |
|
970 pluginDict[plugin_name] = plugin_name |
|
971 |
965 |
972 return pluginDict |
966 return pluginDict |
973 |
967 |
974 def getPluginPreviewPixmap(self, type_, name): |
968 def getPluginPreviewPixmap(self, type_, name): |
975 """ |
969 """ |