Commit b68c12ee authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Update sortPathList to compare paths with properties also

parent 708e9508
......@@ -2124,6 +2124,10 @@ class TemplateTool (BaseTool):
"""
def comparePath(path):
split_path_list = path.split('/')
# Paths with property item should have the least priority as they should
# be installed after installing the object only
if '#' in path:
return 11
if len(split_path_list) == 2 and split_path_list[0] in ('portal_types', 'portal_categories'):
return 1
if len(split_path_list) > 2:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment