Commit 4a7ca174 authored by Romain Courteaud's avatar Romain Courteaud

Call listFilteredActionsFor for portal object.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17460 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d479e15
......@@ -124,7 +124,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
"""
if not run: return
portal_actions = getattr(self.getPortal(), 'portal_actions', None)
global_action_list = portal_actions.listFilteredActionsFor()['global']
global_action_list = portal_actions.listFilteredActionsFor(
self.getPortal())['global']
action_name_list = []
for action in global_action_list:
if(action['visible']):
......
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