Commit 1ac0a29c authored by Vincent Pelletier's avatar Vincent Pelletier

fixup! Folder_generateWorkflowReport: Use select_dict to alias select function

parent 5c08772f
......@@ -32,7 +32,9 @@ if use_selection:
selection_kw = portal.portal_selections.getSelectionParamsFor(selection_name).copy()
selection_kw.pop('limit', None)
search_folder_kw['query'] = portal.portal_catalog.getSQLCatalog().buildQuery(selection_kw)
for line in context.searchFolder(group_by=column_list, select_dict={'count': 'count(*)'} + column_list, **search_folder_kw):
select_dict = dict.fromkeys(column_list)
select_dict['count'] = 'count(*)'
for line in context.searchFolder(group_by=column_list, select_dict=select_dict, **search_folder_kw):
portal_type = line.portal_type
count = line.count
for state_variable in state_variable_set:
......
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