Commit 69de1e99 authored by Rafael Monnerat's avatar Rafael Monnerat

Support Multiple Roles definition splited by ";"

parent ea11b54e
...@@ -72,8 +72,8 @@ class PortalTypeRolesSpreadsheetConfiguratorItem(ConfiguratorItemMixin, XMLObjec ...@@ -72,8 +72,8 @@ class PortalTypeRolesSpreadsheetConfiguratorItem(ConfiguratorItemMixin, XMLObjec
#category = '\n'.join(category_list) #category = '\n'.join(category_list)
role_dict = { role_dict = {
'title': role.get('Name', 'Default'), 'title': role.get('Name', 'Default'),
'role_name_list': role.get('Role'),
'description': role.get('Description', 'Configured by ERP5 Configurator'), 'description': role.get('Description', 'Configured by ERP5 Configurator'),
'role_name_list': [x.strip() for x in role.get('Role', '').split(';')],
'role_category_list': category_list, 'role_category_list': category_list,
'role_base_category_list': role.get('Base_Category', ''), 'role_base_category_list': role.get('Base_Category', ''),
'role_base_category_script_id': role.get('Base_Category_Script', 'role_base_category_script_id': role.get('Base_Category_Script',
......
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