From 8e33a6e022573933ce31104fa7f8a3ae1d7e4f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com> Date: Thu, 23 Dec 2010 16:13:29 +0000 Subject: [PATCH] Use getDestinationPortalType instead of getTitle on contribution registry. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41718 20353a03-c40f-0410-a6d1-a30d3c3de9de --- bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py index 275e232e8b..c16a8fd239 100644 --- a/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py +++ b/bt5/erp5_egov/ExtensionTemplateItem/SetUpEGovInstance.py @@ -38,7 +38,8 @@ def allowAccessOnContributionRegistryPortalTypes(self): self.portal = self.getPortalObject() portal_contribution_registry = self.portal.portal_contribution_registry - pt_title_list = [p.getTitle() for p in portal_contribution_registry.contentValues()] + pt_title_list = [p.getDestinationPortalType() + for p in portal_contribution_registry.contentValues()] exclude_pt_title_list = ['Web Page', 'DMS Ingestion', 'Default Predicate'] for pt_title in pt_title_list: -- 2.30.9