Commit 118e39d0 authored by Sebastien Robin's avatar Sebastien Robin

rewrote isDivergent


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3761 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e4d79e1b
...@@ -339,24 +339,11 @@ class Movement(XMLObject, Amount): ...@@ -339,24 +339,11 @@ class Movement(XMLObject, Amount):
emit targetUnreachable ! emit targetUnreachable !
""" """
for simulation_movement in self.getDeliveryRelatedValueList():
if simulation_movement.isDivergent():
return 1
return 0 return 0
# XXX moved to portal simulation
# # Solver
# def solve(self, dsolver, tsolver):
# if dsolver is not None:
# self.applyDeliverySolver(dsolver)
# if tsolver is not None:
# self.applyTargetSolver(tsolver)
#
# security.declareProtected(Permissions.ModifyPortalContent, 'applyDeliverySolver')
# def applyDeliverySolver(self, solver):
# self.portal_simulation.applyDeliverySolver(self, solver)
#
# security.declareProtected(Permissions.ModifyPortalContent, 'applyTargetSolver')
# def applyTargetSolver(self, solver):
# self.portal_simulation.applyTargetSolver(self, solver)
security.declareProtected(Permissions.AccessContentsInformation, 'getExplanation') security.declareProtected(Permissions.AccessContentsInformation, 'getExplanation')
def getExplanation(self): def getExplanation(self):
""" """
......
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