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

Simplify.

parent adf877b3
...@@ -52,17 +52,20 @@ ...@@ -52,17 +52,20 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
portal = context.getPortalObject()\n portal_activities = context.getPortalObject().portal_activities\n
tag = script.id\n tag = script.id\n
if portal.portal_activities.countMessageWithTag(tag) > 0:\n if bg==1 and portal_activities.countMessageWithTag(tag) > 0:\n
raise TypeError(\'Already running\')\n raise TypeError(\'Already running\')\n
\n \n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalDeliveries()\n if bg:\n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalTemplates()\n getattr(portal_activities.activate(tag=tag), \'00_ERP5Site_postUpgradeFixUp\')(bg=0)\n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalTypes()\n else:\n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalPropertySheets()\n portal_activities.ERP5Site_postUpgradeFixUpPortalDeliveries()\n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalRules()\n portal_activities.ERP5Site_postUpgradeFixUpPortalTemplates()\n
portal.activate(tag=tag).ERP5Site_postUpgradeFixUpPortalSkins()\n portal_activities.ERP5Site_postUpgradeFixUpPortalTypes()\n
portal_activities.ERP5Site_postUpgradeFixUpPortalPropertySheets()\n
portal_activities.ERP5Site_postUpgradeFixUpPortalRules()\n
portal_activities.ERP5Site_postUpgradeFixUpPortalSkins()\n
\n \n
return \'Done.\'\n return \'Done.\'\n
...@@ -71,7 +74,7 @@ return \'Done.\'\n ...@@ -71,7 +74,7 @@ return \'Done.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>bg=1</string> </value>
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
......
41 42
\ 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