Commit afa64309 by Vincent Pelletier

SimulationTool: Pop select_list when generating select_dict

Do not give conflicting instructions to portal_catalog.
1 parent d43bd352
......@@ -822,7 +822,7 @@ class SimulationTool(BaseTool):
# the caller can also pass select_dict or select_list. select_expression,
# which is deprecated in ZSQLCatalog is not supported here.
select_dict = kw.get('select_dict', {})
select_dict.update(dict.fromkeys(list(kw.get('select_list', [])) + related_group_by))
select_dict.update(dict.fromkeys(list(kw.pop('select_list', [])) + related_group_by))
new_kw['select_dict'] = select_dict
related_key_select_expression_list = []
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!