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

BusinessSnapshot: Return the edited value

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