mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Refactor parent folder handling in validation plugin
- Added comments to clarify the list of parents for context and folders.
This commit is contained in:
parent
eb09961b55
commit
37e7b31feb
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class ValidateEditorialAssetName(pyblish.api.ContextPlugin):
|
|||
]
|
||||
|
||||
def process(self, context):
|
||||
|
||||
# list of parents for current context, converted from folderPath
|
||||
folder_and_parents = self.get_parents(context)
|
||||
self.log.debug("__ folder_and_parents: {}".format(folder_and_parents))
|
||||
|
||||
|
|
@ -35,6 +35,7 @@ class ValidateEditorialAssetName(pyblish.api.ContextPlugin):
|
|||
|
||||
existing_folder_paths = {
|
||||
folder_entity["path"]: (
|
||||
# list of parents for current folder
|
||||
folder_entity["path"].lstrip("/").split("/")[:-1]
|
||||
)
|
||||
for folder_entity in folder_entities
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue