Commit be0c90bc authored by Łukasz Nowak's avatar Łukasz Nowak

Raise faster.

parent dbeedbfc
...@@ -54,14 +54,15 @@ ...@@ -54,14 +54,15 @@
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
\n \n
tag = script.id\n
if portal.portal_activities.countMessageWithTag(tag) > 0:\n
raise TypeError(\'Already running\')\n
\n
portal_type_list = []\n portal_type_list = []\n
for portal_type in portal.portal_types.contentValues():\n for portal_type in portal.portal_types.contentValues():\n
if len(portal_type.contentValues(portal_type=\'Role Information\')) > 0:\n if len(portal_type.contentValues(portal_type=\'Role Information\')) > 0:\n
portal_type_list.append(portal_type.getId())\n portal_type_list.append(portal_type.getId())\n
\n \n
tag = script.id\n
if portal.portal_activities.countMessageWithTag(tag) > 0:\n
raise TypeError(\'Already running\')\n
method_id = \'Base_updateSlapOSLocalRoles\'\n method_id = \'Base_updateSlapOSLocalRoles\'\n
portal.portal_catalog.searchAndActivate(\n portal.portal_catalog.searchAndActivate(\n
portal_type=portal_type_list,\n portal_type=portal_type_list,\n
......
54 55
\ 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