Commit 2277f1bb authored by Nicolas Dumazet's avatar Nicolas Dumazet

we dont need to sort objects when testing for inclusion


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42436 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fb7304ea
......@@ -1635,7 +1635,8 @@ def setDefaultProperties(property_holder, object=None, portal=None):
from Products.ERP5Type.ERP5Type import ERP5TypeInformation
portal_type = object.portal_type
for group in ERP5TypeInformation.defined_group_list:
value = portal_type in portal._getPortalGroupedTypeSet(group)
value = portal_type in portal._getPortalGroupedTypeSet(group,
enable_sort=False)
prop = {
'id' : group,
'description' : "accessor to know the membership of portal group %s" \
......
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