Menu

#12 PluginManager.collectPlugins should return value from loadPlugins

v1.x
open
nobody
None
1
2018-05-01
2018-05-01
Anonymous
No

Issue: if a PluginManager is used to collectPlugins and there are plugins it cannot load the errors are stored in plugin_info.error. The plugin_info object is appened to all processed plugins. This list is returned by loadPlugins. However, collectPlugins which wraps the call to loadPlugins does not return the processed_plugins list.

>>> m = PluginManagerSingleton.get()
>>> m.setPluginPlaces(['/foo/bar', '/baz'])
>>> processed_plugins = m.collectPlugins()
>>> # if a console logger in use you get a lot of errors here
>>> type(processed_plugins)
<type 'NoneType'>

Discussion

Anonymous
Anonymous

Add attachments
Cancel