From 40d22f242df5bd8c14b85e90502b69f1021e1014 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Thu, 19 Apr 2007 13:11:46 +0000 Subject: [PATCH] Cast reserved_kw to a dict. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14122 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Tool/SimulationTool.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/ERP5/Tool/SimulationTool.py b/product/ERP5/Tool/SimulationTool.py index 2489b6337e..d7ee9234a0 100644 --- a/product/ERP5/Tool/SimulationTool.py +++ b/product/ERP5/Tool/SimulationTool.py @@ -537,6 +537,10 @@ class SimulationTool(BaseTool): else: simulation_query = omit_query if reserved_kw is not None: + if type(reserved_kw) != dict: + # Not a dict when taken from URL, so, cast is needed + # to make pop method available + reserved_kw = dict(reserved_kw) reserved_omit_input = reserved_kw.pop('omit_input',0) reserved_omit_output = reserved_kw.pop('omit_output',0) reserved_omit_query = self._getOmitQuery(query_table=table, -- 2.30.9