33 from python_qt_binding.QtCore
import qCritical
40 Plugin provider which directly loads and returns all discovered plugins. 42 Discovered plugins should be plugin providers themselves. 46 super(RecursivePluginProvider, self).
__init__([])
47 self.setObjectName(
'RecursivePluginProvider')
53 plugin_descriptors = self._plugin_provider.discover(discovery_data)
57 for plugin_descriptor
in plugin_descriptors:
60 instance = self._plugin_provider.load(plugin_descriptor.plugin_id(),
None)
62 qCritical(
'RecursivePluginProvider.discover() loading plugin "%s" failed:\n%s' %
63 (str(plugin_descriptor.plugin_id()), traceback.format_exc()))
65 if instance
is not None:
66 plugin_providers.append(instance)
70 return CompositePluginProvider.discover(self, discovery_data)
def __init__(self, plugin_provider)
def set_plugin_providers(self, plugin_providers)
def discover(self, discovery_data)