Commit fb6c9c97 authored by Jérome Perrin's avatar Jérome Perrin

supports the case where role_name is empty on a role definition


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24837 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a1fd1525
...@@ -467,7 +467,8 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, ...@@ -467,7 +467,8 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation,
# object # object
if getattr(aq_base(ob), 'isPrincipiaFolderish', 0): if getattr(aq_base(ob), 'isPrincipiaFolderish', 0):
for roledef in ob.objectValues(spec = 'ERP5 Role Definition'): for roledef in ob.objectValues(spec = 'ERP5 Role Definition'):
role_category_list_dict.setdefault(roledef.getRoleName(), []).append( if roledef.getRoleName():
role_category_list_dict.setdefault(roledef.getRoleName(), []).append(
{ {
'category_order' : ['agent'], 'category_order' : ['agent'],
'agent' : roledef.getAgentList() 'agent' : roledef.getAgentList()
......
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