This commit is contained in:
Thorsten S
2015-11-20 22:03:58 +01:00
parent 41f2595347
commit e0485b4fb2

View File

@@ -975,8 +975,9 @@ def register(func_type):
""" """
functions = [ functions = [
f for ignored, f in globals().items() if all([ f for ignored, f in globals().items() if
isinstance(f, types.FunctionType), isinstance(f, types.FunctionType) and
all([
f.__dict__.get('is_plugin', False), f.__dict__.get('is_plugin', False),
getattr(f, 'plugin_type') == func_type getattr(f, 'plugin_type') == func_type
]) ])