Commit 5c8bbf61 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

if target solver is not yet set for a solver decision, we can just ignore it.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31389 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9c5e9f57
...@@ -90,6 +90,9 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -90,6 +90,9 @@ class SolverProcess(XMLObject, ActiveProcess):
# and which parameters with # and which parameters with
for decision in self.contentValues(portal_type="Solver Decision"): for decision in self.contentValues(portal_type="Solver Decision"):
solver = decision.getSolverValue() solver = decision.getSolverValue()
# do nothing if solver is not yet set.
if solver is None:
continue
solver_type = solver.getId() # ex. Postpone Production Solver solver_type = solver.getId() # ex. Postpone Production Solver
solver_conviguration_dict = decision.getConfigurationPropertyDict() solver_conviguration_dict = decision.getConfigurationPropertyDict()
solver_conviguration_key = tuple(solver_conviguration_dict.items()) solver_conviguration_key = tuple(solver_conviguration_dict.items())
......
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