Commit f4ec3603 authored by Alain Takoudjou's avatar Alain Takoudjou

Fixup ERP5Site_dumpPortalTypeRoleList

Merged commit from Lukasz Nowak <luke@nexedi.com>:
  - getLocalRolesGroupId does not exists on portal type. 183c69455e5b3c20d2ae9464859de09256b4c371
  - Follow accessor name change. 1632a67b7a19deaddfb40e2b79c772cdd144f0cf
parent a372c0c9
......@@ -51,13 +51,13 @@
<item>
<key> <string>_body</string> </key>
<value> <string>for ti in sorted(context.getPortalObject().portal_types.contentValues(), key=lambda x:x.getId()):\n
for ri in sorted(ti.contentValues(portal_type=\'Role Information\'), key=lambda x:(x.getTitle(), x.getLocalRolesGroupId(), x.getRoleBaseCategoryScriptId(), x.getRoleBaseCategoryList())):\n
for ri in sorted(ti.contentValues(portal_type=\'Role Information\'), key=lambda x:(x.getTitle(), x.getLocalRoleGroupId(), x.getRoleBaseCategoryScriptId(), x.getRoleBaseCategoryList())):\n
print ti.getId()\n
print " ", "\\n ".join([x for x in (\n
"Title: %s" % ri.getTitle(),\n
"Roles: %r" % ri.getRoleNameList(),\n
"Condition: %s" % ri.getConditionText(),\n
"Local Roles Group Id: %s" % ri.getLocalRolesGroupId(),\n
"Local Roles Group Id: %s" % ri.getLocalRoleGroupId(),\n
"Base Categories: %r" % ri.getRoleBaseCategoryList(),\n
"Base Category Script: %s" % ri.getRoleBaseCategoryScriptId(),\n
"Categories: %r" % ri.getRoleCategoryList() )])\n
......
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