Commit 02278466 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

small bugfixes.

* use a tuple instead of a list for a part of dict key.
* solver decision's delivery values are delivery movements not simulation movements.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31375 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 18487d34
......@@ -92,7 +92,7 @@ class SolverProcess(XMLObject, ActiveProcess):
solver = decision.getSolverValue()
solver_type = solver.getId() # ex. Postpone Production Solver
solver_conviguration_dict = decision.getConfigurationPropertyDict()
solver_conviguration_key = solver_conviguration_dict.items()
solver_conviguration_key = tuple(solver_conviguration_dict.items())
for movement in decision.getDeliveryValueList():
# Detect incompatibilities
movement_solver_dict = movement_dict.setdefault(movement.getRelativeUrl(), {})
......@@ -189,7 +189,7 @@ class SolverProcess(XMLObject, ActiveProcess):
# XXX-JPS: pseudocode for update (ie. rebuild) is not present
for solver_decision_key, movement_dict in solver_decision_dict.items():
new_decision = self.newContent(portal_type='Solver Decision')
new_decision._setDeliveryList(movement_dict.keys())
new_decision._setDeliveryList(solver_decision_key[1])
new_decision._setCausality(solver_decision_key[0])
# No need to set application_list or....?
......
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