mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
added get_entity_path function to base handler
This commit is contained in:
parent
6a5559c9b2
commit
ff32d0ee4a
1 changed files with 7 additions and 0 deletions
|
|
@ -647,3 +647,10 @@ class BaseHandler(object):
|
|||
project_settings = get_project_settings(project_name)
|
||||
event["data"]["project_settings"][project_id] = project_settings
|
||||
return project_settings
|
||||
|
||||
@staticmethod
|
||||
def get_entity_path(entity):
|
||||
"""Return full hierarchical path to entity."""
|
||||
return "/".join(
|
||||
[ent["name"] for ent in entity["link"]]
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue