Commit 077b6dba authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_upgrader: fix upgrader detail rendering on error

parent d26b78d7
...@@ -61,8 +61,7 @@ alarm = getattr(portal_alarms, \'upgrader_check_upgrader\')\n ...@@ -61,8 +61,7 @@ alarm = getattr(portal_alarms, \'upgrader_check_upgrader\')\n
if not(force) and alarm.sense() in (None, True):\n if not(force) and alarm.sense() in (None, True):\n
active_process.postActiveResult(summary=context.getTitle(),\n active_process.postActiveResult(summary=context.getTitle(),\n
severity=1,\n severity=1,\n
detail="Is required run upgrade before solve it. " +\\\n detail=["Is required run upgrade before solve it. You need run active sense once at least on this alarm"])\n
"You need run active sense once at least on this alarm")\n
return\n return\n
\n \n
context.ERP5Site_checkUpgraderConsistency(fixit=True,\n context.ERP5Site_checkUpgraderConsistency(fixit=True,\n
......
...@@ -70,8 +70,7 @@ alarm = getattr(portal_alarms, \'upgrader_check_pre_upgrade\')\n ...@@ -70,8 +70,7 @@ alarm = getattr(portal_alarms, \'upgrader_check_pre_upgrade\')\n
if not(force) and alarm.sense() in (None, True):\n if not(force) and alarm.sense() in (None, True):\n
active_process.postActiveResult(summary=context.getTitle(),\n active_process.postActiveResult(summary=context.getTitle(),\n
severity=1,\n severity=1,\n
detail="Is required solve Pre Upgrade first. " +\\\n detail=["Is required solve Pre Upgrade first. You need run active sense once at least on this alarm"])\n
"You need run active sense once at least on this alarm")\n
return\n return\n
\n \n
_, type_per_constraint_type = context.Base_getConstraintTypeListPerPortalType()\n _, type_per_constraint_type = context.Base_getConstraintTypeListPerPortalType()\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