Commit 25942607 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not try to solve if a solver is already solving or solved state.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33572 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 26956853
...@@ -32,6 +32,7 @@ from AccessControl import ClassSecurityInfo ...@@ -32,6 +32,7 @@ from AccessControl import ClassSecurityInfo
from Products.ERP5Type import Permissions, PropertySheet, interfaces from Products.ERP5Type import Permissions, PropertySheet, interfaces
from Products.ERP5Type.XMLObject import XMLObject from Products.ERP5Type.XMLObject import XMLObject
from Products.CMFActivity.ActiveProcess import ActiveProcess from Products.CMFActivity.ActiveProcess import ActiveProcess
from Products.ERP5Type.Errors import UnsupportedWorkflowMethod
class SolverProcess(XMLObject, ActiveProcess): class SolverProcess(XMLObject, ActiveProcess):
""" """
...@@ -150,9 +151,11 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -150,9 +151,11 @@ class SolverProcess(XMLObject, ActiveProcess):
Start solving Start solving
""" """
for solver in self.contentValues(portal_type=self.getPortalObject().getPortalTargetSolverTypeList()): for solver in self.contentValues(portal_type=self.getPortalObject().getPortalTargetSolverTypeList()):
solver.startSolving() try:
solver.activate(active_process=self).solve() solver.startSolving()
solver.activate(active_process=self).solve()
except UnsupportedWorkflowMethod:
pass
# API # API
def isSolverDecisionListConsistent(self): def isSolverDecisionListConsistent(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