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): ...@@ -345,20 +345,21 @@ class Movement(XMLObject, Amount):
self.getStartDate().Date() != self.getTargetStartDate().Date() or \ self.getStartDate().Date() != self.getTargetStartDate().Date() or \
self.getStopDate().Date() != self.getTargetStopDate().Date() self.getStopDate().Date() != self.getTargetStopDate().Date()
# Solver # XXX moved to portal simulation
def solve(self, dsolver, tsolver): # # Solver
if dsolver is not None: # def solve(self, dsolver, tsolver):
self.applyDeliverySolver(dsolver) # if dsolver is not None:
if tsolver is not None: # self.applyDeliverySolver(dsolver)
self.applyTargetSolver(tsolver) # if tsolver is not None:
# self.applyTargetSolver(tsolver)
security.declareProtected(Permissions.ModifyPortalContent, 'applyDeliverySolver') #
def applyDeliverySolver(self, solver): # security.declareProtected(Permissions.ModifyPortalContent, 'applyDeliverySolver')
self.portal_simulation.applyDeliverySolver(self, solver) # def applyDeliverySolver(self, solver):
# self.portal_simulation.applyDeliverySolver(self, solver)
security.declareProtected(Permissions.ModifyPortalContent, 'applyTargetSolver') #
def applyTargetSolver(self, solver): # security.declareProtected(Permissions.ModifyPortalContent, 'applyTargetSolver')
self.portal_simulation.applyTargetSolver(self, solver) # 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