Commit 94cba7da authored by Jean-Paul Smets's avatar Jean-Paul Smets

Improved comment

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33980 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7025d24f
...@@ -138,15 +138,16 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -138,15 +138,16 @@ class SolverProcess(XMLObject, ActiveProcess):
for movement, movement_solver_dict in movement_dict.items(): for movement, movement_solver_dict in movement_dict.items():
for solver, movement_solver_configuration_list in movement_solver_dict.items(): for solver, movement_solver_configuration_list in movement_solver_dict.items():
for configuration_mapping in movement_solver_configuration_list: for configuration_mapping in movement_solver_configuration_list:
# Detect conflicts. This includes finding out that a solver which
# is exclusive per movement, conflicts with another solver on the same
# movement
solver_message_list = solver.getSolverConflictMessageList(movement, configuration_mapping, solver_dict) solver_message_list = solver.getSolverConflictMessageList(movement, configuration_mapping, solver_dict)
if solver_message_list: if solver_message_list:
message_list.extend(solver_message_list) message_list.extend(solver_message_list)
continue # No need to keep on continue # No need to keep on
# Make sure multiple configuration are possible # Solver key contains only those properties which differentiate
try: # solvers (ex. there should be only Production Reduction Solver)
# Solver key contains only those properties which differentiate solver_key = solver.getSolverProcessGroupingKey(movement, configuration_mapping, solver_dict)
# solvers (ex. there should be only Production Reduction Solver)
solver_key = solver.getSolverProcessGroupingKey(movement, configuration_mapping, solver_dict)
except: # Raise the exception generated by the solver in case of failure of grouping except: # Raise the exception generated by the solver in case of failure of grouping
raise raise
solver_key_dict = grouped_solver_dict.setdefault(solver, {}) solver_key_dict = grouped_solver_dict.setdefault(solver, {})
......
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