Commit ccbf86f0 authored by Kevin Deldycke's avatar Kevin Deldycke

Same as v2.76 change: getPortalAssignmentBaseCategoryList must return a list,...

Same as v2.76 change: getPortalAssignmentBaseCategoryList must return a list, not a tuple, in order to let ERP5Type_asSecurityGroupId script do a sort()


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4547 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5d8de261
......@@ -549,7 +549,11 @@ class ERP5Site ( CMFSite, FolderMixIn ):
"""
Return List of category values to generate security groups.
"""
return self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list')
category_tuple = self._getPortalGroupedCategoryList('assignment') or self._getPortalConfiguration('portal_assignment_base_category_list')
category_list = []
if category_tuple not in (None, '', (), []):
category_list = [ x for x in category_tuple]
return category_list
security.declareProtected(Permissions.AccessContentsInformation, 'getDefaultModuleId')
def getDefaultModuleId(self, portal_type):
......
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