Commit 3690d403 authored by Nicolas Dumazet's avatar Nicolas Dumazet

oops, we were stopping at Applied Rules and ignoring their children. Not good.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37098 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c120ccd9
...@@ -680,6 +680,13 @@ class SimulationMovement(Movement, PropertyRecordableMixin): ...@@ -680,6 +680,13 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
tree_node.visited_movement_dict[id] = t tree_node.visited_movement_dict[id] = t
if path in path_set_to_check: if path in path_set_to_check:
yield t yield t
else:
# it must be an Applied Rule
subtree = tree_node.get(id, treeNode())
for d in descendantGenerator(subdocument,
subtree,
path_set_to_check):
yield d
for id, t in tree_node.visited_movement_dict.iteritems(): for id, t in tree_node.visited_movement_dict.iteritems():
subdocument, path = t subdocument, path = t
......
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