Commit 0b3a5988 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Function to explicitly update template_path_list

parent 0b2a4d53
...@@ -286,6 +286,25 @@ class BusinessManager(Folder): ...@@ -286,6 +286,25 @@ class BusinessManager(Folder):
final_prop_map = prop_map+self._properties final_prop_map = prop_map+self._properties
return final_prop_map return final_prop_map
def createTemplatePathListFromItemList(self):
"""
This function is to clean and create a new template_path_list from the
sub-objects (Business Item or Business Property Item).
WARNING: Shouldn't be used in general to edit. Only to be used in cases to
clear template_path_list.
"""
template_path_list = []
# Get the sub-objects and construct their template path, i.e, path in format
# of <path> | <sign> | <layer>
for item in self.objectValues():
path = item.constructTemplatePath()
template_path_list.append(path)
# Add the updated template_path_list in the BM
self.setProperty('template_path_list', template_path_list)
def export(self, path=None, **kw): def export(self, path=None, **kw):
""" """
Export the object as zexp file Export the object as zexp file
......
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