Commit 8bb4b660 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config: Generate new id and use them in old_installation state

parent ccbe7642
...@@ -1815,9 +1815,12 @@ class TemplateTool (BaseTool): ...@@ -1815,9 +1815,12 @@ class TemplateTool (BaseTool):
portal_type='Business Manager', portal_type='Business Manager',
title='Old Installation State', title='Old Installation State',
) )
for item in combined_installed_path_item: for item in combined_installed_path_item:
item.isIndexable = ConstantGetter('isIndexable', value=False) item.isIndexable = ConstantGetter('isIndexable', value=False)
old_installation_state._setObject(item.getId(), aq_base(item), # Better to use new ids so that we don't end up in conflicts
new_id = old_installation_state.generateNewId()
old_installation_state._setObject(new_id, aq_base(item),
suppress_events=True) suppress_events=True)
forbidden_bm_title_list = ['Old Installation State',] forbidden_bm_title_list = ['Old Installation State',]
......
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