From 4a7ca174ea42d48e707477542873e746cc2bc0ec Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 7 Nov 2007 15:36:14 +0000 Subject: [PATCH] Call listFilteredActionsFor for portal object. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17460 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testERP5Core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5/tests/testERP5Core.py b/product/ERP5/tests/testERP5Core.py index 1a11fba335..162c5acb38 100644 --- a/product/ERP5/tests/testERP5Core.py +++ b/product/ERP5/tests/testERP5Core.py @@ -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']): -- 2.30.9