|
|
|
@ -49,11 +49,11 @@ class PluginMeta(models.BaseMeta):
|
|
|
|
|
attrs['name'] = alias
|
|
|
|
|
if 'description' not in attrs:
|
|
|
|
|
doc = attrs.get('__doc__', None)
|
|
|
|
|
if not doc:
|
|
|
|
|
raise Exception(('Please, add a description or '
|
|
|
|
|
'documentation to class {}').format(name))
|
|
|
|
|
attrs['description'] = doc
|
|
|
|
|
attrs['name'] = alias
|
|
|
|
|
if doc:
|
|
|
|
|
attrs['description'] = doc
|
|
|
|
|
else:
|
|
|
|
|
logger.warn(('Plugin {} does not have a description. '
|
|
|
|
|
'Please, add a short summary to help other developers').format(name))
|
|
|
|
|
cls = super(PluginMeta, mcs).__new__(mcs, name, bases, attrs)
|
|
|
|
|
|
|
|
|
|
if alias in mcs._classes:
|
|
|
|
|