Commit 42f7064a authored by Rafael Monnerat's avatar Rafael Monnerat

Don't use hardcoded id.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42125 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 32ff0374
......@@ -82,9 +82,9 @@ class PortalTypeRolesSpreadsheetConfiguratorItem(ConfiguratorItemMixin, XMLObjec
if getattr(aq_self, '_spreadsheet_cache', None) is None:
role_dict = dict()
info_dict = self.ConfigurationTemplate_readOOCalcFile(
'default_portal_type_roles_spreadsheet')
for sheet_name, table in self.ConfigurationTemplate_readOOCalcFile(
'default_portal_type_roles_spreadsheet').items():
"portal_roles_spreadsheet.ods",
data=self.getDefaultPortalTypeRolesSpreadsheetData())
for sheet_name, table in info_dict.items():
for line in table:
if 'Portal_Type' in line:
ptype_role_list = role_dict.setdefault(line['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