Commit 5b4026be authored by Jérome Perrin's avatar Jérome Perrin

don't use "in objectIds" which is O(n)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25395 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f705e155
......@@ -54,7 +54,7 @@ class SplitAndDefer(CopyToTarget):
split_index = 0
new_id = "%s_split_%s" % (simulation_movement.getId(), split_index)
applied_rule = simulation_movement.getParentValue()
while new_id in applied_rule.objectIds():
while getattr(aq_base(applied_rule), new_id, None) is not None:
split_index += 1
new_id = "%s_split_%s" % (simulation_movement.getId(), split_index)
# Adopt different dates for deferred movements
......
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