Commit 05fd778b authored by Łukasz Nowak's avatar Łukasz Nowak

- simplify erp5_upgrader logic -- do not try to detect if

   ERP5Site_upgradeSQLCatalog shall be called or not, just add it in
   default signature

Note: It would be always added, as message_list would always be above 0,
but in many ares of use of upgrader finalize_upgrade_script_list shall
be defined, but never with reindexing/dropping catalog.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44658 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cf1e5c4
...@@ -50,9 +50,7 @@ ...@@ -50,9 +50,7 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string>"""\n
"""\n
Finalize Upgrade is the final step of upgrader. Here should contains\n Finalize Upgrade is the final step of upgrader. Here should contains\n
the scripts that should be executed after the business template installation.\n the scripts that should be executed after the business template installation.\n
"""\n """\n
...@@ -85,11 +83,6 @@ if bt5_upgrader_sense:\n ...@@ -85,11 +83,6 @@ if bt5_upgrader_sense:\n
for script_id in context.ERP5Site_getUpgraderSignature().get(\'finalize_upgrade_script_list\', []):\n for script_id in context.ERP5Site_getUpgraderSignature().get(\'finalize_upgrade_script_list\', []):\n
message_list.extend(getattr(context, script_id)(upgrade=1))\n message_list.extend(getattr(context, script_id)(upgrade=1))\n
\n \n
# Verify if there was any change previously and \n
if len(message_list) > 0:\n
message_list.extend(context.ERP5Site_upgradeSQLCatalog(upgrade=1))\n
clear_cache_kw[\'after_tag\'] = \'tag_migration_finish\'\n
\n
activate(active_process=active_process,\n activate(active_process=active_process,\n
activity=\'SQLQueue\',\n activity=\'SQLQueue\',\n
priority=2).Alarm_saveActiveResult(summary="Finalize Upgrade",\n priority=2).Alarm_saveActiveResult(summary="Finalize Upgrade",\n
...@@ -105,9 +98,7 @@ activate(active_process=active_process,\n ...@@ -105,9 +98,7 @@ activate(active_process=active_process,\n
after_tag=clear_cache_kw[\'tag\']).ERP5Site_notifyUpgradeIntegrity(active_process=active_process)\n after_tag=clear_cache_kw[\'tag\']).ERP5Site_notifyUpgradeIntegrity(active_process=active_process)\n
\n \n
return message_list\n return message_list\n
</string> </value>
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
......
...@@ -267,6 +267,7 @@ FINALIZE_ALARM_SCRIPT = ( \'ERP5Site_upgradeGlobalPropertyList\',\n ...@@ -267,6 +267,7 @@ FINALIZE_ALARM_SCRIPT = ( \'ERP5Site_upgradeGlobalPropertyList\',\n
\'ERP5Site_upgradeObjectClass\',\n \'ERP5Site_upgradeObjectClass\',\n
\'ERP5Site_upgradeSQLCatalogFilter\',\n \'ERP5Site_upgradeSQLCatalogFilter\',\n
\'ERP5Site_upgradeAlarmToolConfiguration\',\n \'ERP5Site_upgradeAlarmToolConfiguration\',\n
\'ERP5Site_upgradeSQLCatalog\',\n
)\n )\n
\n \n
# \n # \n
......
584 585
\ 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