Commit da9048db authored by Kevin Deldycke's avatar Kevin Deldycke

getPortalAssignmentBaseCategoryList must return a list, not a tuple


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4284 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d6327d6
......@@ -526,7 +526,11 @@ class ERP5Site ( CMFSite, FolderMixIn ):
"""
Return List of category values to generate security groups.
"""
return self._getPortalConfiguration('portal_assignment_base_category_list')
category_tuple = 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