mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
mark the function with an attribute to know if entities are expected in arguments
This commit is contained in:
parent
31b023b0fa
commit
16b4584609
1 changed files with 5 additions and 0 deletions
|
|
@ -277,6 +277,11 @@ def _get_product_name_decorator(func):
|
|||
The old version expected 'task_name' and 'task_type' arguments. The new
|
||||
version expects 'folder_entity' and 'task_entity' arguments instead.
|
||||
"""
|
||||
# Add attribute to function to identify it as the new function
|
||||
# so other addons can easily identify it.
|
||||
# >>> geattr(get_product_name, "use_entities", False)
|
||||
func.use_entities = True
|
||||
|
||||
@wraps(_get_product_name)
|
||||
def inner(*args, **kwargs):
|
||||
# ---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue