[Erp5-report] r17363 - /erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Nov 2 14:56:56 CET 2007
Author: vincent
Date: Fri Nov 2 14:56:55 2007
New Revision: 17363
URL: http://svn.erp5.org?rev=17363&view=rev
Log:
Move search_result computation out of the "for" loop.
Remove commented-out useless log.
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=17363&r1=17362&r2=17363&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/WorkflowTool.py (original)
+++ erp5/trunk/products/ERP5Type/patches/WorkflowTool.py Fri Nov 2 14:56:55 2007
@@ -446,6 +446,7 @@
if len(worklist_dict):
portal_url = getToolByName(self, 'portal_url')()
portal_catalog = getToolByName(self, 'portal_catalog')
+ search_result = portal_catalog.unrestrictedSearchResults
getSecurityUidListAndRoleColumnDict = \
portal_catalog.getSecurityUidListAndRoleColumnDict
security_query_cache_dict = {}
@@ -460,12 +461,10 @@
acceptable_key_dict=acceptable_key_dict,
getSecurityUidListAndRoleColumnDict=\
getSecurityUidListAndRoleColumnDict)
- #LOG('WorklistGeneration', WARNING, worklist_list_grouped_by_condition)
for grouped_worklist_dict in worklist_list_grouped_by_condition:
# Generate the query for this worklist_list
(select_expression, group_by_expression, query) = \
getWorklistListQuery(grouped_worklist_dict=grouped_worklist_dict)
- search_result = portal_catalog.unrestrictedSearchResults
search_result_kw = {'select_expression': select_expression,
'group_by_expression': group_by_expression,
'query': query}
More information about the Erp5-report
mailing list