Merge pull request #825 from pypeclub/feature/thumbnail_event_handler

Thumbnail event handler with settings
This commit is contained in:
Milan Kolar 2020-12-16 22:31:29 +01:00 committed by GitHub
commit a596b96c5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 149 additions and 33 deletions

View file

@ -652,3 +652,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"]]
)