[enh] plugin id

This commit is contained in:
Adam Tauber 2015-03-11 01:42:25 +01:00
parent 359dfc5ebb
commit 9cb66be29c
1 changed files with 1 additions and 0 deletions

View File

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