Commit 3cf6f3fa authored by Vincent Pelletier's avatar Vincent Pelletier

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
parent f040387f
...@@ -386,6 +386,7 @@ def WorkflowTool_listActions(self, info=None, object=None): ...@@ -386,6 +386,7 @@ def WorkflowTool_listActions(self, info=None, object=None):
worklist_dict[wf_id] = a worklist_dict[wf_id] = a
if len(worklist_dict): if len(worklist_dict):
portal_url = getToolByName(self, 'portal_url')()
def _getWorklistActionList(): def _getWorklistActionList():
portal_url = getToolByName(self, 'portal_url')() portal_url = getToolByName(self, 'portal_url')()
portal_catalog = getToolByName(self, 'portal_catalog') portal_catalog = getToolByName(self, 'portal_catalog')
...@@ -411,7 +412,7 @@ def WorkflowTool_listActions(self, info=None, object=None): ...@@ -411,7 +412,7 @@ def WorkflowTool_listActions(self, info=None, object=None):
LOG('WorklistGeneration', BLATHER, 'Creating %s actions.' % (len(action_list), )) LOG('WorklistGeneration', BLATHER, 'Creating %s actions.' % (len(action_list), ))
return action_list return action_list
user = str(_getAuthenticatedUser(self)) 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()) actions.extend(_getWorklistActionList())
return actions return actions
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment