Commit d129a68e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

use solver category in SimulationMovement, and remove non-working...

use solver category in SimulationMovement, and remove non-working getSolverList() method in SimulationMovement and AppliedRule.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31457 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b0ff618
...@@ -175,14 +175,6 @@ class AppliedRule(XMLObject): ...@@ -175,14 +175,6 @@ class AppliedRule(XMLObject):
""" """
return self.getSpecialiseValue().getDivergenceList(sim_mvt) return self.getSpecialiseValue().getDivergenceList(sim_mvt)
security.declareProtected(Permissions.AccessContentsInformation,
'getSolverList')
def getSolverList(self, movement):
"""
Returns a list Divergence solvers
"""
return self.getSpecialiseValue().getSolverList(movement)
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'isRootAppliedRule') 'isRootAppliedRule')
def isRootAppliedRule(self): def isRootAppliedRule(self):
......
...@@ -222,15 +222,6 @@ class Rule(Predicate, XMLObject): ...@@ -222,15 +222,6 @@ class Rule(Predicate, XMLObject):
result_list.append(result) result_list.append(result)
return result_list return result_list
# XXX getSolverList is not part of the API and should be removed.
# Use getDivergenceList instead.
# security.declareProtected(Permissions.View, 'getSolverList')
# def getSolverList(self, applied_rule):
# """
# Returns a list Divergence solvers
# """
# Deliverability / orderability # Deliverability / orderability
def isOrderable(self, movement): def isOrderable(self, movement):
return 0 return 0
......
...@@ -436,14 +436,6 @@ class SimulationMovement(Movement, PropertyRecordableMixin): ...@@ -436,14 +436,6 @@ class SimulationMovement(Movement, PropertyRecordableMixin):
""" """
return self.getParentValue().getDivergenceList(self) return self.getParentValue().getDivergenceList(self)
security.declareProtected( Permissions.AccessContentsInformation,
'getSolverList')
def getSolverList(self):
"""
Returns solvers that can fix the current divergence
"""
return self.getParentValue().getSolverList(self)
security.declareProtected( Permissions.ModifyPortalContent, security.declareProtected( Permissions.ModifyPortalContent,
'setDefaultDeliveryProperties') 'setDefaultDeliveryProperties')
def setDefaultDeliveryProperties(self): def setDefaultDeliveryProperties(self):
......
...@@ -76,5 +76,5 @@ class Simulation: ...@@ -76,5 +76,5 @@ class Simulation:
'mode' : 'w' }, 'mode' : 'w' },
) )
_categories = ('order', 'delivery', 'delivery_mode', 'incoterm') _categories = ('order', 'delivery', 'delivery_mode', 'incoterm', 'solver')
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