Commit 8e33a6e0 authored by Grégory Wisniewski's avatar Grégory Wisniewski

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
parent 45411f6f
......@@ -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:
......
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