Commit 7935f17f authored by Romain Courteaud's avatar Romain Courteaud

Remove solver API, which is not used anymore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3149 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ce30cafd
......@@ -345,20 +345,21 @@ class Movement(XMLObject, Amount):
self.getStartDate().Date() != self.getTargetStartDate().Date() or \
self.getStopDate().Date() != self.getTargetStopDate().Date()
# 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)
# 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')
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