Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ayush Tiwari
erp5
Commits
5c675867
Commit
5c675867
authored
Sep 11, 2017
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5_config[WORKAROUND]: Try redeleting sub-objects during reducing BM
parent
54053d0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
product/ERP5/Document/BusinessManager.py
product/ERP5/Document/BusinessManager.py
+12
-0
No files found.
product/ERP5/Document/BusinessManager.py
View file @
5c675867
...
...
@@ -592,6 +592,18 @@ class BusinessManager(Folder):
else
:
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
:
item
.
isIndexable
=
ConstantGetter
(
'isIndexable'
,
value
=
False
)
new_id
=
self
.
generateNewId
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment