Commit 89ae5c52 authored by Ayush Tiwari's avatar Ayush Tiwari

BusinessSnapshot: Return the edited value

parent 8aa43f64
......@@ -726,10 +726,10 @@ class BusinessItem(XMLObject):
Overriden function so that we can update attributes for BusinessItem objects
"""
super(BusinessItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
edited = super(BusinessItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
# Build the object here, if the item_path has been added/updated
# XXX: We also need to add attribute to ensure that this doesn't happen
......@@ -1129,10 +1129,10 @@ class BusinessPropertyItem(XMLObject):
Overriden function so that we can update attributes for BusinessItem objects
"""
super(BusinessPropertyItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
edited = super(BusinessPropertyItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
# Build the object here, if the item_path has been added/updated
# XXX: We also need to add attribute to ensure that this doesn't happen
......@@ -1140,6 +1140,8 @@ class BusinessPropertyItem(XMLObject):
if 'item_path' in self._v_modified_property_dict:
self.build(self.aq_parent)
return edited
def build(self, context, **kw):
p = context.getPortalObject()
path = self.getProperty('item_path')
......
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