dang it
This commit is contained in:
@@ -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
|
||||||
])
|
])
|
||||||
|
|||||||
Reference in New Issue
Block a user