Commit 40d22f24 authored by Romain Courteaud's avatar Romain Courteaud

Cast reserved_kw to a dict.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14122 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b7fd99fe
...@@ -537,6 +537,10 @@ class SimulationTool(BaseTool): ...@@ -537,6 +537,10 @@ class SimulationTool(BaseTool):
else: else:
simulation_query = omit_query simulation_query = omit_query
if reserved_kw is not None: 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_input = reserved_kw.pop('omit_input',0)
reserved_omit_output = reserved_kw.pop('omit_output',0) reserved_omit_output = reserved_kw.pop('omit_output',0)
reserved_omit_query = self._getOmitQuery(query_table=table, reserved_omit_query = self._getOmitQuery(query_table=table,
......
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