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

BusinessSnapshot: Return the edited value

parent 8aa43f64
......@@ -726,7 +726,7 @@ class BusinessItem(XMLObject):
Overriden function so that we can update attributes for BusinessItem objects
"""
super(BusinessItem, self)._edit(item_path=item_path,
edited = super(BusinessItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
......@@ -1129,7 +1129,7 @@ class BusinessPropertyItem(XMLObject):
Overriden function so that we can update attributes for BusinessItem objects
"""
super(BusinessPropertyItem, self)._edit(item_path=item_path,
edited = super(BusinessPropertyItem, self)._edit(item_path=item_path,
item_sign=item_sign,
item_layer=item_layer,
**kw)
......@@ -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