Commit 5887d1e7 authored by Arnaud Fontaine's avatar Arnaud Fontaine

Use objectIds() rather than searchFolder() to get the list of ZODB

Constraints portal types



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42951 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7399ed37
......@@ -128,8 +128,11 @@ class PropertySheetTool(BaseTool):
# Mapping between the filesystem 'type' field and Portal Types ID
portal_type_dict = {}
for search_result in types_tool.searchFolder(id='% Constraint'):
portal_type_id = search_result.getId()
for portal_type_id in types_tool.objectIds():
if not portal_type_id.endswith(' Constraint'):
continue
constraint_class_name = portal_type_id.replace(' ', '')
if constraint_class_name not in filesystem_constraint_class_name_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