Commit 8537741d authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Accept empty path_list for Business Manager objects

parent e7260c75
......@@ -124,7 +124,6 @@ class BusinessManager(XMLObject):
self._setTemplatePathList(path_item_list)
def _setTemplatePathList(self, path_item_list):
if path_item_list:
self.template_path_list = path_item_list
def getTemplatePathList(self):
......@@ -158,7 +157,10 @@ class BusinessManager(XMLObject):
if path_item_list:
path_item_list = [l.split(' | ') for l in path_item_list]
for path_item in path_item_list:
try:
self._path_item_list.append(BusinessItem(path_item[0], path_item[1], path_item[2]))
except IndexError:
pass
def build(self, no_action=False, **kw):
"""Creates new values for business item from the values from
......
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