Commit 67b2dcb6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

implement SolverTool.isDivergent().


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31344 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b5f5ecb
......@@ -130,6 +130,12 @@ class SolverTool(BaseTool):
delivery_or_movement -- a movement, a delivery,
or a list thereof
"""
if not isinstance(delivery_or_movement, (tuple, list)):
delivery_or_movement = [delivery_or_movement]
for movement in delivery_or_movement:
if movement.isDivergent():
return True
return False
def newSolverProcess(self, delivery_or_movement=None):
"""
......
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