From 3cf6f3fa9630ffcd960ab2d040c6329c2635341c Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Fri, 3 Aug 2007 15:17:34 +0000 Subject: [PATCH] Add portal_url in cache id, as it was in the original worklist code. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15466 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/patches/WorkflowTool.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/patches/WorkflowTool.py b/product/ERP5Type/patches/WorkflowTool.py index 29a2d3d21a..ce24d616a5 100644 --- a/product/ERP5Type/patches/WorkflowTool.py +++ b/product/ERP5Type/patches/WorkflowTool.py @@ -386,6 +386,7 @@ def WorkflowTool_listActions(self, info=None, object=None): 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 @@ def WorkflowTool_listActions(self, info=None, object=None): 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 -- 2.30.9