Commit 921cc559 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

r33954 was wrong, the right place to reinitialise is here.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33955 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c3faa43f
...@@ -109,6 +109,7 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -109,6 +109,7 @@ class SolverProcess(XMLObject, ActiveProcess):
configuration_list = solver_movement_dict.setdefault(movement_url, []) configuration_list = solver_movement_dict.setdefault(movement_url, [])
configuration_list.extend(movement_solver_configuration_dict) # XXX-JPS WRONG configuration_list.extend(movement_solver_configuration_dict) # XXX-JPS WRONG
# Then start the grouping procedure # Then start the grouping procedure
solver_dict = {}
for movement_url, movement_solver_dict in movement_dict.items(): for movement_url, movement_solver_dict in movement_dict.items():
for solver_type, movement_solver_configuration_dict in movement_solver_dict.items(): for solver_type, movement_solver_configuration_dict in movement_solver_dict.items():
solver = types_tool[solver_type] solver = types_tool[solver_type]
...@@ -130,7 +131,6 @@ class SolverProcess(XMLObject, ActiveProcess): ...@@ -130,7 +131,6 @@ class SolverProcess(XMLObject, ActiveProcess):
solver_movement_dict[movement_url] = movement_solver_configuration_dict.keys() solver_movement_dict[movement_url] = movement_solver_configuration_dict.keys()
# Third, build target solvers # Third, build target solvers
solver_dict = {}
for solver_type, solver_key_dict in solver_dict.items(): for solver_type, solver_key_dict in solver_dict.items():
for solver_key, solver_movement_dict in solver_key_dict.items(): for solver_key, solver_movement_dict in solver_key_dict.items():
solver_instance = self.newContent(portal_type=solver_type) solver_instance = self.newContent(portal_type=solver_type)
......
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