Commit 8e5049d4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove parts that are now in RuleMixin.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31197 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a021f476
......@@ -68,9 +68,6 @@ class NewOrderRule(RuleMixin, Predicate):
PropertySheet.Rule
)
# Portal Type of created children
movement_type = 'Simulation Movement'
# XXX this method is missing in interface.
def isOrderable(self, movement):
return 1
......@@ -81,25 +78,6 @@ class NewOrderRule(RuleMixin, Predicate):
return 0
return 1
# XXX this method should be defined in the mixin or the base class.
security.declareProtected(Permissions.View, 'getDivergenceList')
def getDivergenceList(self, movement):
"""
Returns a list of divergences of the movements provided
in delivery_or_movement.
movement -- a movement, a delivery, a simulation movement,
or a list thereof
"""
result_list = []
for divergence_tester in self._getDivergenceTesterList():
result = divergence_tester.explain(movement)
if isinstance(result, (list, tuple)): # for compatibility
result_list.extend(result)
elif result is not None:
result_list.append(result)
return result_list
def _getMovementGenerator(self):
"""
Return the movement generator to use in the expand process
......
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