Commit e1346547 authored by Nicolas Dumazet's avatar Nicolas Dumazet

give _recurseGetValueList a clearer name


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36762 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 272ba485
...@@ -655,7 +655,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin): ...@@ -655,7 +655,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
### Step 3: ### Step 3:
## We had no luck, we have to explore descendant movements in ZODB ## We had no luck, we have to explore descendant movements in ZODB
# #
def _recurseGetValueList(document, tree_node): def descendantGenerator(document, tree_node):
""" """
generator yielding Simulation Movement descendants of document. generator yielding Simulation Movement descendants of document.
It does _not_ explore the whole subtree if iteration is stopped. It does _not_ explore the whole subtree if iteration is stopped.
...@@ -674,7 +674,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin): ...@@ -674,7 +674,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
for id, subdocument in tree_node.visited_dict.iteritems(): for id, subdocument in tree_node.visited_dict.iteritems():
subtree = tree_node.get(id, treeNode()) subtree = tree_node.get(id, treeNode())
for d in _recurseGetValueList(subdocument, subtree): for d in descendantGenerator(subdocument, subtree):
yield d yield d
# descend in the tree to find self: # descend in the tree to find self:
...@@ -683,7 +683,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin): ...@@ -683,7 +683,7 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
tree_node = tree_node.setdefault(path_id, treeNode()) tree_node = tree_node.setdefault(path_id, treeNode())
# explore subobjects of self # explore subobjects of self
for descendant in _recurseGetValueList(self, tree_node): for descendant in descendantGenerator(self, tree_node):
path = descendant.getCausalityValue() path = descendant.getCausalityValue()
if path not in remaining_path_set: if path not in remaining_path_set:
continue continue
......
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