diff --git a/product/ERP5/Document/Movement.py b/product/ERP5/Document/Movement.py index 027637f1069b671f161cdf77e18499c7e2439385..83e2c6f7e57765158b9a918a2208a26e1c17e4bf 100755 --- a/product/ERP5/Document/Movement.py +++ b/product/ERP5/Document/Movement.py @@ -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):