Skip to content
Snippets Groups Projects
Commit 088d35c0 authored by Anael Beutot's avatar Anael Beutot
Browse files

Added tag decorators for introspection.

parent a98144d7
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,21 @@ def tag_inspector(mod, parent=None):
return tags
# decorators for tag inspector
def ttl(value):
def decorator(func):
func.ttl = value
return func
return decorator
def refresh(value):
def decorator(func):
func.refresh = value
return func
return decorator
def get_tags(tags_dict, tags=None, noresolve_tags=None):
"""Helper to get tags.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment