Commit 5c675867 authored by Ayush Tiwari's avatar Ayush Tiwari

bt5_config[WORKAROUND]: Try redeleting sub-objects during reducing BM

parent 54053d0b
...@@ -592,6 +592,18 @@ class BusinessManager(Folder): ...@@ -592,6 +592,18 @@ class BusinessManager(Folder):
else: else:
reduced_path_item_list.append(prioritized_path_item[0]) reduced_path_item_list.append(prioritized_path_item[0])
id_list = [l for l in self.objectIds()]
for l in id_list:
try:
self._delObject(l)
except Exception:
# XXX: REMOVE/RECHEK BEFORE MERGE
# The reason for doing this horrible workaround is to delete object
# for 'portal_memcached/persistent_memcached_plugin' as it is not getting
# deleted in 1st attempt with failure :
# AttributeError: 'NoneType' object has no attribute 'getUid'
self._delObject(l)
for item in reduced_path_item_list: for item in reduced_path_item_list:
item.isIndexable = ConstantGetter('isIndexable', value=False) item.isIndexable = ConstantGetter('isIndexable', value=False)
new_id = self.generateNewId() new_id = self.generateNewId()
......
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