<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
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
info_list += [\'expression\'] + [p for p in pd.propertyIds() if p.startswith(\'message\')]\n
elif pd.getPortalType() in (\'Category Existence Constraint\', \'Category Existence Constraint\'):\n
info_list += [\'constraint_base_category_list\'] + [p for p in pd.propertyIds() if p.startswith(\'message\')]\n
elif pd.getPortalType() in (\'Category Membership State Constraint\', \'Acquired Category Membership State Constraint\'):\n
info_list += [\'membership_portal_type_list\', \'constraint_base_category_list\', \'workflow_state_list\', \'workflow_variable\'] + [p for p in pd.propertyIds() if p.startswith(\'message\')]\n
\n
elif pd.getPortalType() in (\'Property Existence Constraint\', ):\n
info_list += [\'constraint_property_list\'] + [p for p in pd.propertyIds() if p.startswith(\'message\')]\n
elif pd.getPortalType() in (\'Content Existence Constraint\', ):\n
info_list += [\'constraint_portal_type\'] + [p for p in pd.propertyIds() if p.startswith(\'message\')]\n