From 5704786c19407269fefb6191951d7cd62af10cab Mon Sep 17 00:00:00 2001 From: Kazuhiko Shiozaki <kazuhiko@nexedi.com> Date: Mon, 9 Nov 2009 10:30:05 +0000 Subject: [PATCH] fix undefined names. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30420 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/SolverTool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Tool/SolverTool.py b/product/ERP5/Tool/SolverTool.py index 895edbd2e6..d4e4a1f2cd 100644 --- a/product/ERP5/Tool/SolverTool.py +++ b/product/ERP5/Tool/SolverTool.py @@ -137,7 +137,7 @@ class SolverTool(BaseTool): # that a single decision is created per divergence tester instance # and per application level list solver_decision_dict = {} - if movement in delivery_or_movement: + for movement in delivery_or_movement: for simulation_movement in movement.getDeliveryRelatedValueList(): simulation_movemet_url = simulation_movement.getRelativeUrl() for divergence_tester in simulation_movement.getParentValue().getDivergenceTesterValueList(): @@ -153,7 +153,7 @@ class SolverTool(BaseTool): new_solver = self.newContent(portal_type='Solver Process') for solver_decision_key, movement_dict in solver_decision_dict.items(): new_decision = self.newContent(portal_type='Solver Decision') - new_decision._setDeliveryList(movement_url.keys(p)) + new_decision._setDeliveryList(movement_dict.keys()) new_decision._setSolver(solver_decision_key[0]) # No need to set application_list or....? -- 2.30.9