[enh] plugin id

This commit is contained in:
Adam Tauber 2015-03-11 01:42:25 +01:00
parent 359dfc5ebb
commit 9cb66be29c

View File

@ -29,6 +29,7 @@ class PluginStore():
if not hasattr(plugin, plugin_attr): if not hasattr(plugin, plugin_attr):
logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin)) logger.critical('missing attribute "{0}", cannot load plugin: {1}'.format(plugin_attr, plugin))
exit(3) exit(3)
plugin.id = plugin.name.replace(' ', '_')
self.plugins.append(plugin) self.plugins.append(plugin)
def call(self, plugin_type, request, *args, **kwargs): def call(self, plugin_type, request, *args, **kwargs):