Commit 7303091f authored by Sebastien Robin's avatar Sebastien Robin

cleanup


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1849 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15d5ebef
...@@ -213,30 +213,6 @@ class SimulationTool (Folder, UniqueObject): ...@@ -213,30 +213,6 @@ class SimulationTool (Folder, UniqueObject):
return result[0].inventory return result[0].inventory
return 0.0 return 0.0
#######################################################
# Movement Group Collection / Delivery Creation
def collectMovement2(self, movement_list, check_list = None):
"""
group movements in the way we want
movement_list : the list of movement wich we want to group
check_list : the list of classes used to group movements. The order
of the list is important and determines by what we will
group movement first
Typically, check_list is :
(DateMovementList,PathMovementList,...)
"""
if check_list is None:
check_list = []
s_tool = self.portal_simulation
my_root_group = s_tool.root_movement_group.getInstance(check_list=check_list)
for movement in movement_list:
if not movement in my_root_group.movement_list :
my_root_group.append(movement,check_list=check_list)
return my_root_group
####################################################### #######################################################
# Movement Group Collection / Delivery Creation # Movement Group Collection / Delivery Creation
def collectMovement(self, movement_list,class_list=None,**kw): def collectMovement(self, movement_list,class_list=None,**kw):
......
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