[Erp5-report] r36762 nicolas.dumazet - /erp5/trunk/products/ERP5/Document/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Jul 1 05:13:04 CEST 2010
Author: nicolas.dumazet
Date: Thu Jul 1 05:13:03 2010
New Revision: 36762
URL: http://svn.erp5.org?rev=36762&view=rev
Log:
give _recurseGetValueList a clearer name
Modified:
erp5/trunk/products/ERP5/Document/SimulationMovement.py
Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=36762&r1=36761&r2=36762&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Thu Jul 1 05:13:03 2010
@@ -655,7 +655,7 @@ class SimulationMovement(Movement, Prope
### Step 3:
## 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.
It does _not_ explore the whole subtree if iteration is stopped.
@@ -674,7 +674,7 @@ class SimulationMovement(Movement, Prope
for id, subdocument in tree_node.visited_dict.iteritems():
subtree = tree_node.get(id, treeNode())
- for d in _recurseGetValueList(subdocument, subtree):
+ for d in descendantGenerator(subdocument, subtree):
yield d
# descend in the tree to find self:
@@ -683,7 +683,7 @@ class SimulationMovement(Movement, Prope
tree_node = tree_node.setdefault(path_id, treeNode())
# explore subobjects of self
- for descendant in _recurseGetValueList(self, tree_node):
+ for descendant in descendantGenerator(self, tree_node):
path = descendant.getCausalityValue()
if path not in remaining_path_set:
continue
More information about the Erp5-report
mailing list