Commit 26df1b1e authored by Vincent Pelletier's avatar Vincent Pelletier

Actually call ERP5Site_getUpgraderSignature, again.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44081 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8a64ed06
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
# Setup skins\n # Setup skins\n
context.ERP5Site_setupUpgraderSkinSelection()\n context.ERP5Site_setupUpgraderSkinSelection()\n
\n \n
alarm_dict = context.ERP5Site_getUpgraderSignature.get(\'alarm_dict\', {})\n alarm_dict = context.ERP5Site_getUpgraderSignature().get(\'alarm_dict\', {})\n
if not alarm_dict.get(context.getId(), True):\n if not alarm_dict.get(context.getId(), True):\n
return False\n return False\n
\n \n
......
...@@ -82,7 +82,7 @@ if bt5_upgrader_sense:\n ...@@ -82,7 +82,7 @@ if bt5_upgrader_sense:\n
severity=0,\n severity=0,\n
detail=\'BT5 Upgrader Sense: %s\' % (bt5_upgrader_sense))\n detail=\'BT5 Upgrader Sense: %s\' % (bt5_upgrader_sense))\n
\n \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 # Verify if there was any change previously and \n
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
"""\n """\n
message_list = []\n message_list = []\n
portal_alarms = context.portal_alarms\n portal_alarms = context.portal_alarms\n
alarm_tool_configuration_list = context.ERP5Site_getUpgraderSignature.get(\'alarm_tool_configuration_list\', [])\n alarm_tool_configuration_list = context.ERP5Site_getUpgraderSignature().get(\'alarm_tool_configuration_list\', [])\n
if alarm_tool_configuration_list is None:\n if alarm_tool_configuration_list is None:\n
return message_list\n return message_list\n
\n \n
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<value> <string>portal = context.getPortalObject()\n <value> <string>portal = context.getPortalObject()\n
message_list = []\n message_list = []\n
is_upgrade_required = 0\n is_upgrade_required = 0\n
site_property_dict = portal.ERP5Site_getUpgraderSignature.get(\'erp5_site_property_dict\', {})\n site_property_dict = portal.ERP5Site_getUpgraderSignature().get(\'erp5_site_property_dict\', {})\n
\n \n
for prop in site_property_dict:\n for prop in site_property_dict:\n
if site_property_dict[prop] != getattr(portal,prop , None):\n if site_property_dict[prop] != getattr(portal,prop , None):\n
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<value> <string>"""\n <value> <string>"""\n
Migrate Object Classes based on upgrade signature\n Migrate Object Classes based on upgrade signature\n
"""\n """\n
class_signature_list = context.ERP5Site_getUpgraderSignature.get(\'upgrade_object_class_list\', [])\n class_signature_list = context.ERP5Site_getUpgraderSignature().get(\'upgrade_object_class_list\', [])\n
\n \n
portal = context.getPortalObject()\n portal = context.getPortalObject()\n
message_list = []\n message_list = []\n
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
"""\n """\n
from Products.ERP5Type.Log import log\n from Products.ERP5Type.Log import log\n
portal_templates = context.portal_templates\n portal_templates = context.portal_templates\n
validation_dict = context.ERP5Site_getUpgraderSignature.get(\'object_action_dict\', {})\n validation_dict = context.ERP5Site_getUpgraderSignature().get(\'object_action_dict\', {})\n
param_not_provided = "PARAM_NOT_PROVIDED"\n param_not_provided = "PARAM_NOT_PROVIDED"\n
\n \n
# get list of title of bt5 that are installed.\n # get list of title of bt5 that are installed.\n
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
\n \n
message_list = []\n message_list = []\n
\n \n
portal_type_property_sheet_list = context.ERP5Site_getUpgraderSignature.get(\'portal_type_property_sheet_list\', [])\n portal_type_property_sheet_list = context.ERP5Site_getUpgraderSignature().get(\'portal_type_property_sheet_list\', [])\n
\n \n
for expected_property_sheet, portal_type_id_list in portal_type_property_sheet_list:\n for expected_property_sheet, portal_type_id_list in portal_type_property_sheet_list:\n
\n \n
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<value> <string>"""\n <value> <string>"""\n
verify if the workflow was updated, if is not updated update it.\n verify if the workflow was updated, if is not updated update it.\n
"""\n """\n
workflow_chain_dict = context.ERP5Site_getUpgraderSignature.get(\'workflow_chain_dict\', {})\n workflow_chain_dict = context.ERP5Site_getUpgraderSignature().get(\'workflow_chain_dict\', {})\n
if workflow_chain_dict is None:\n if workflow_chain_dict is None:\n
# If no signature, ignore.\n # If no signature, ignore.\n
return []\n return []\n
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
"""\n """\n
message_list = []\n message_list = []\n
\n \n
for script_id in context.ERP5Site_getUpgraderSignature.get(\'integrity_verification_script_id_list\', []):\n for script_id in context.ERP5Site_getUpgraderSignature().get(\'integrity_verification_script_id_list\', []):\n
result = context.ERP5Site_runVerificationScript(script_id)\n result = context.ERP5Site_runVerificationScript(script_id)\n
if result is not None:\n if result is not None:\n
message_list.append(result)\n message_list.append(result)\n
......
...@@ -60,7 +60,7 @@ catalog_filter_dict = {}\n ...@@ -60,7 +60,7 @@ catalog_filter_dict = {}\n
for key in filter_dict:\n for key in filter_dict:\n
catalog_filter_dict[key] = filter_dict[key][\'expression\']\n catalog_filter_dict[key] = filter_dict[key][\'expression\']\n
\n \n
expect_expression_dict = context.ERP5Site_getUpgraderSignature.get(\'catalog_filter_dict\', {})\n expect_expression_dict = context.ERP5Site_getUpgraderSignature().get(\'catalog_filter_dict\', {})\n
\n \n
if len(catalog_filter_dict.keys()) != len(expect_expression_dict.keys()):\n if len(catalog_filter_dict.keys()) != len(expect_expression_dict.keys()):\n
message_list.append("Catalog filter have diferent key lenght (%s != %s): %s != %s" % \\\n message_list.append("Catalog filter have diferent key lenght (%s != %s): %s != %s" % \\\n
......
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