Commit 346b04af authored by Łukasz Nowak's avatar Łukasz Nowak

Fixup.

getLocalRolesGroupId does not exists on portal type.
parent cabc4225
...@@ -51,13 +51,12 @@ ...@@ -51,13 +51,12 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>for ti in sorted(context.getPortalObject().portal_types.contentValues(), key=lambda x:x.getId()):\n <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.getRoleBaseCategoryScriptId(), x.getRoleBaseCategoryList())):\n
print ti.getId()\n print ti.getId()\n
print " ", "\\n ".join([x for x in (\n print " ", "\\n ".join([x for x in (\n
"Title: %s" % ri.getTitle(),\n "Title: %s" % ri.getTitle(),\n
"Roles: %r" % ri.getRoleNameList(),\n "Roles: %r" % ri.getRoleNameList(),\n
"Condition: %s" % ri.getConditionText(),\n "Condition: %s" % ri.getConditionText(),\n
"Local Roles Group Id: %s" % ri.getLocalRolesGroupId(),\n
"Base Categories: %r" % ri.getRoleBaseCategoryList(),\n "Base Categories: %r" % ri.getRoleBaseCategoryList(),\n
"Base Category Script: %s" % ri.getRoleBaseCategoryScriptId(),\n "Base Category Script: %s" % ri.getRoleBaseCategoryScriptId(),\n
"Categories: %r" % ri.getRoleCategoryList() )])\n "Categories: %r" % ri.getRoleCategoryList() )])\n
......
147 148
\ No newline at end of file \ No newline at end of file
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