Commit 5fe522ba authored by Romain Courteaud's avatar Romain Courteaud

Improve performance

parent 1ac957d4
...@@ -52,9 +52,16 @@ ...@@ -52,9 +52,16 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
portal_type_list = []\n
for t in context.getPortalObject().portal_types.contentValues():\n for t in context.getPortalObject().portal_types.contentValues():\n
if len(t.contentValues(portal_type=\'Role Information\')) > 0:\n if len(t.contentValues(portal_type=\'Role Information\')) > 0:\n
t.updateRoleMapping()\n portal_type_list.append(t.getId())\n
\n
context.getPortalObject().portal_catalog.searchAndActivate(\n
portal_type=portal_type_list,\n
method_id=\'updateLocalRolesOnSecurityGroups\',\n
method_kw={\'reindex\': False}\n
)\n
]]></string> </value> ]]></string> </value>
......
28 29
\ 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