From b519b2bea5a5e10e3e5852920479812305a432b8 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Thu, 17 Dec 2009 09:21:15 +0000
Subject: [PATCH] fix SolverProcess.buildSolverDecisionList(). * argument of
 getSolverDecisionApplicationValueList() should be a movement instead of a
 simulation movement. * list cannot be a part of dict key. * fix a typo:
 setdefatuls -> setdefault.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31366 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/SolverProcess.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/product/ERP5/Document/SolverProcess.py b/product/ERP5/Document/SolverProcess.py
index 9c65aae920..e8c55845c5 100644
--- a/product/ERP5/Document/SolverProcess.py
+++ b/product/ERP5/Document/SolverProcess.py
@@ -176,10 +176,10 @@ class SolverProcess(XMLObject, ActiveProcess):
         simulation_movemet_url = simulation_movement.getRelativeUrl()
         for divergence_tester in simulation_movement.getParentValue().getSpecialiseValue()._getDivergenceTesterList():
           application_list = map(lambda x:x.getRelativeUrl(), 
-                 self.getSolverDecisionApplicationValueList(simulation_movement, divergence_tester))
+                 self.getSolverDecisionApplicationValueList(movement, divergence_tester))
           application_list.sort()
-          solver_decision_key = (divergence_tester.getRelativeUrl(), application_list)
-          movement_dict = solver_decision_dict.setdefaults(solver_decision_key, {})
+          solver_decision_key = (divergence_tester.getRelativeUrl(), tuple(application_list))
+          movement_dict = solver_decision_dict.setdefault(solver_decision_key, {})
           movement_dict[simulation_movemet_url] = None
 
     # Now build the solver decision instances based on the previous
-- 
2.30.9