From 921cc559623c850331f85d911252b27207d703d1 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 22 Mar 2010 15:57:31 +0000
Subject: [PATCH] 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
---
 product/ERP5/Document/SolverProcess.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5/Document/SolverProcess.py b/product/ERP5/Document/SolverProcess.py
index 5cfabbb71b..08b17623a1 100644
--- a/product/ERP5/Document/SolverProcess.py
+++ b/product/ERP5/Document/SolverProcess.py
@@ -109,6 +109,7 @@ class SolverProcess(XMLObject, ActiveProcess):
         configuration_list = solver_movement_dict.setdefault(movement_url, [])
         configuration_list.extend(movement_solver_configuration_dict) # XXX-JPS WRONG
     # Then start the grouping procedure
+    solver_dict = {}
     for movement_url, movement_solver_dict in movement_dict.items():
       for solver_type, movement_solver_configuration_dict in movement_solver_dict.items():
         solver = types_tool[solver_type]
@@ -130,7 +131,6 @@ class SolverProcess(XMLObject, ActiveProcess):
         solver_movement_dict[movement_url] = movement_solver_configuration_dict.keys()
 
     # Third, build target solvers
-    solver_dict = {}
     for solver_type, solver_key_dict in solver_dict.items():
       for solver_key, solver_movement_dict in solver_key_dict.items():
          solver_instance = self.newContent(portal_type=solver_type)
-- 
2.30.9