[Erp5-report] r15466 - /erp5/trunk/products/ERP5Type/patches/WorkflowTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 3 17:17:34 CEST 2007
Author: vincent
Date: Fri Aug 3 17:17:34 2007
New Revision: 15466
URL: http://svn.erp5.org?rev=15466&view=rev
Log:
Add portal_url in cache id, as it was in the original worklist code.
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=15466&r1=15465&r2=15466&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/WorkflowTool.py (original)
+++ erp5/trunk/products/ERP5Type/patches/WorkflowTool.py Fri Aug 3 17:17:34 2007
@@ -386,6 +386,7 @@
worklist_dict[wf_id] = a
if len(worklist_dict):
+ portal_url = getToolByName(self, 'portal_url')()
def _getWorklistActionList():
portal_url = getToolByName(self, 'portal_url')()
portal_catalog = getToolByName(self, 'portal_catalog')
@@ -411,7 +412,7 @@
LOG('WorklistGeneration', BLATHER, 'Creating %s actions.' % (len(action_list), ))
return action_list
user = str(_getAuthenticatedUser(self))
- _getWorklistActionList = CachingMethod(_getWorklistActionList, id=('_getWorklistActionList', user), cache_factory = 'erp5_ui_short')
+ _getWorklistActionList = CachingMethod(_getWorklistActionList, id=('_getWorklistActionList', user, portal_url), cache_factory = 'erp5_ui_short')
actions.extend(_getWorklistActionList())
return actions
More information about the Erp5-report
mailing list