Commit 00fa77a4 authored by Sebastien Robin's avatar Sebastien Robin

added method getRootSimulationMovementUid


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4613 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eb1b9dbc
......@@ -529,6 +529,16 @@ class SimulationMovement(Movement):
else:
return parent_applied_rule.getRootSimulationMovement()
security.declareProtected(Permissions.View, 'getRootSimulationMovementUid')
def getRootSimulationMovementUid(self):
"""
Return the uid of the root simulation movement in the simulation tree.
"""
root_simulation_movement = self.getRootSimulationMovement()
if root_simulation_movement is not None:
return root_simulation_movement.getUid()
return None
# XXX FIXME Use a interaction workflow instead
# The call to activate() must be done after actual call to
# setDelivery() on the movement,
......
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