27 lines
489 B
Python
27 lines
489 B
Python
def intent_handler(*args):
|
|
"""
|
|
Creates an attribute on the method, so it can
|
|
be discovered by the metaclass
|
|
"""
|
|
|
|
def decorator(f):
|
|
f._type = "adapt"
|
|
f._data = args
|
|
return f
|
|
|
|
return decorator
|
|
|
|
|
|
def intent_file_handler(*args):
|
|
"""
|
|
Creates an attribute on the method, so it can
|
|
be discovered by the metaclass
|
|
"""
|
|
|
|
def decorator(f):
|
|
f._type = "padatious"
|
|
f._data = args
|
|
return f
|
|
|
|
return decorator
|