Commit 638ee29e authored by Jérome Perrin's avatar Jérome Perrin

get solver tool from its new location, and minor updates


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ed9b4fb6
...@@ -81,7 +81,6 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -81,7 +81,6 @@ class SolverProcess(XMLObject, ActiveProcess):
Builds target solvers from solver decisions Builds target solvers from solver decisions
""" """
movement_dict = {} movement_dict = {}
types_tool = self.portal_types
message_list = [] message_list = []
# First create a mapping between delivery movements and solvers # First create a mapping between delivery movements and solvers
...@@ -154,8 +153,9 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -154,8 +153,9 @@ class SolverProcess(XMLObject, ActiveProcess):
if configuration_mapping not in movement_solver_configuration_list: if configuration_mapping not in movement_solver_configuration_list:
movement_solver_configuration_list.append(configuration_mapping) movement_solver_configuration_list.append(configuration_mapping)
# Return empty list of conflicts # If conflicts where detected, return them and do nothing
if message_list: return message_list if message_list:
return message_list
# Fourth, build target solvers # Fourth, build target solvers
for solver, solver_key_dict in grouped_solver_dict.items(): for solver, solver_key_dict in grouped_solver_dict.items():
...@@ -216,7 +216,7 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -216,7 +216,7 @@ class SolverProcess(XMLObject, ActiveProcess):
# delivery lines. Let us group decisions in such way # delivery lines. Let us group decisions in such way
# that a single decision is created per divergence tester instance # that a single decision is created per divergence tester instance
# and per application level list # and per application level list
solver_tool = self.getParentValue() solver_tool = self.getPortalObject().portal_solvers
solver_decision_dict = {} solver_decision_dict = {}
for movement in movement_list: for movement in movement_list:
for simulation_movement in movement.getDeliveryRelatedValueList(): for simulation_movement in movement.getDeliveryRelatedValueList():
......
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