Commit d8369113 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Add default for item_layer and item_sign properties

parent a3e79de2
......@@ -763,7 +763,6 @@ class BusinessItem(XMLObject):
remove_sub_objects = kw.get('remove_sub_objects')
if remove_sub_objects:
removable_property_list.append('_tree')
obj = self.removeProperties(obj, 1, properties=removable_property_list)
obj = obj.__of__(context)
# XXX: '_recursiveRemoveUid' is not working as expected
......@@ -1023,10 +1022,10 @@ class BusinessItem(XMLObject):
return self.getProperty('item_path')
def getBusinessPathSign(self):
return self.getProperty('item_sign')
return self.getProperty('item_sign', 1)
def getBusinessPathLayer(self):
return self.getProperty('item_layer')
return self.getProperty('item_layer', 1)
def getParentBusinessManager(self):
return self.aq_parent
......@@ -1125,10 +1124,10 @@ class BusinessPropertyItem(XMLObject):
return self.getProperty('item_path')
def getBusinessPathSign(self):
return self.getProperty('item_sign')
return self.getProperty('item_sign', 1)
def getBusinessPathLayer(self):
return self.getProperty('item_layer')
return self.getProperty('item_layer', 1)
def getParentBusinessManager(self):
return self.aq_parent
......
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