Commit ab0f2031 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: No need to give different id to different portal_types

parent dc86ddf8
...@@ -1194,24 +1194,19 @@ class BusinessPatchItem(XMLObject): ...@@ -1194,24 +1194,19 @@ class BusinessPatchItem(XMLObject):
item_path=item_path, item_path=item_path,
item_layer=item_layer, item_layer=item_layer,
item_sign=item_sign, item_sign=item_sign,
id='new_property_item') id='new_item')
new_prop_item.build(self) new_prop_item.build(self)
# ID to be used for old item copied from dependency_list
updated_id = 'old_property_item'
else: else:
# Create new_item and build it from ZODB # Create new_item and build it from ZODB
new_item = self.newContent(portal_type='Business Item', new_item = self.newContent(portal_type='Business Item',
item_path=item_path, item_path=item_path,
item_layer=item_layer, item_layer=item_layer,
item_sign=item_sign, item_sign=item_sign,
id='new_path_item') id='new_item')
new_item.build(self) new_item.build(self)
# ID to be used for old item copied from dependency_list updated_id = 'old_item'
updated_id = 'old_path_item'
# Copy old item/property item from the item at similar path in dependency_bm # Copy old item/property item from the item at similar path in dependency_bm
dependency_item = dependency_bm.getBusinessItemByPath(item_path) dependency_item = dependency_bm.getBusinessItemByPath(item_path)
cp_data = dependency_bm.manage_copyObjects([dependency_bm.getId()]) cp_data = dependency_bm.manage_copyObjects([dependency_bm.getId()])
......
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