Commit 3742e09b authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

BusinessManager: No need to create new Id for objects in Business Item

parent 86ea1af6
...@@ -777,8 +777,11 @@ class BusinessItem(XMLObject): ...@@ -777,8 +777,11 @@ class BusinessItem(XMLObject):
_recursiveRemoveUid(obj) _recursiveRemoveUid(obj)
obj = aq_base(obj) obj = aq_base(obj)
obj.isIndexable = ConstantGetter('isIndexable', value=False) obj.isIndexable = ConstantGetter('isIndexable', value=False)
new_id = self.generateNewId() # In general, one Business Item only has one object in it, so we never end
self._setObject(new_id, obj, suppress_events=True) # up in conflict as we'll always be having its unique path(due to GUID of
# Business Item), thus we can just use object Id as it is while making it
# a sub-object of Business Item
self._setObject(obj.id, obj, suppress_events=True)
def _resolvePath(self, folder, relative_url_list, id_list): def _resolvePath(self, folder, relative_url_list, id_list):
""" """
......
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