Commit f95fadab authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

'order' value of a simulation movement now can be multiple.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31511 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a21cb623
...@@ -60,11 +60,9 @@ class CausalityAssignmentMovementGroup(MovementGroup): ...@@ -60,11 +60,9 @@ class CausalityAssignmentMovementGroup(MovementGroup):
# Go upper into the simulation tree in order to find an order link # Go upper into the simulation tree in order to find an order link
while parent.getOrderValue() is None and not(parent.isRootAppliedRule()): while parent.getOrderValue() is None and not(parent.isRootAppliedRule()):
parent = parent.getParentValue() parent = parent.getParentValue()
order_movement = parent.getOrderValue() causality_list = property_dict.get('causality_list', [])
if order_movement is not None: for order_movement in parent.getOrderList():
causality = property_dict.get('causality_list', []) if order_movement not in causality_list:
order_movement_url = order_movement.getRelativeUrl() causality_list.append(order_movement)
if order_movement_url not in causality: property_dict['causality_list'] = causality_list
causality.append(order_movement_url)
property_dict['causality_list'] = causality
return property_dict return property_dict
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