[Erp5-report] r15542 - /erp5/trunk/products/ERP5Type/patches/WorkflowTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 7 19:52:37 CEST 2007


Author: vincent
Date: Tue Aug  7 19:52:36 2007
New Revision: 15542

URL: http://svn.erp5.org?rev=15542&view=rev
Log:
Reuse existing list instead of generating it again.

Modified:
    erp5/trunk/products/ERP5Type/patches/WorkflowTool.py

Modified: erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/WorkflowTool.py?rev=15542&r1=15541&r2=15542&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/WorkflowTool.py (original)
+++ erp5/trunk/products/ERP5Type/patches/WorkflowTool.py Tue Aug  7 19:52:36 2007
@@ -245,7 +245,7 @@
   if SECURITY_PARAMETER_ID not in total_criterion_id_list:
     # This request has no defined local_roles, so we must use default security query
     query = ComplexQuery(query, securityQueryHook(), operator='AND')
-  group_by_expression = ', '.join([x for x in total_criterion_id_dict.keys() if x != SECURITY_PARAMETER_ID])
+  group_by_expression = ', '.join([x for x in total_criterion_id_list if x != SECURITY_PARAMETER_ID])
   assert COUNT_COLUMN_TITLE not in total_criterion_id_dict
   select_expression = 'count(*) as %s, %s' % (COUNT_COLUMN_TITLE, group_by_expression)
   return (select_expression, group_by_expression, query)




More information about the Erp5-report mailing list