From 3456aeabe97ab252afe423d9df84b928f1e87d42 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 20 Apr 2010 12:44:12 +0000 Subject: [PATCH] Do not select unneeded columns. Also, use select_dict instead of select_expression as the later is deprecated. Reviewed by Jerome. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34684 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../Extensions/Folder_getWorkflowActionDocumentList.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py b/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py index 18c6db334b..8c11a8079d 100644 --- a/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py +++ b/product/ERP5Form/Extensions/Folder_getWorkflowActionDocumentList.py @@ -76,9 +76,7 @@ def getDocumentGroupByWorkflowStateList(self, form_id='', **kw): 'catalog.%s is not NULL' % workflow_state params['group_by'] = ('catalog.portal_type', 'catalog.%s' % workflow_state) - params['select_expression'] = ( - 'catalog.path, count(catalog.uid) as count, catalog.portal_type, catalog.%s' - % workflow_state) + params['select_dict'] = {'count': 'count(catalog.uid)'} for brain in selection_tool.callSelectionFor(selection_name, params=params): doc = brain.getObject() -- 2.30.9