Commit be6feb0f authored by Romain Courteaud's avatar Romain Courteaud Committed by Sebastien Robin

Also display list of bt5 to update

parent ca8419b7
...@@ -60,7 +60,9 @@ if bt5 is None:\n ...@@ -60,7 +60,9 @@ if bt5 is None:\n
\n \n
active_result = ActiveResult()\n active_result = ActiveResult()\n
\n \n
bt5_list = portal.portal_templates.resolveBusinessTemplateListDependency(bt5.split(\'\\n\'), newest_only=True)\n bt5_list = [x[1] for x in portal.portal_templates.resolveBusinessTemplateListDependency("vifib_erp5".split(\'\\n\'), newest_only=True)]\n
bt5_list.extend([x.getTitle() for x in portal.portal_templates.getUpdatedRepositoryBusinessTemplateList()])\n
bt5_list = list(set(bt5_list))\n
\n \n
# XXX Can not import BusinessTemplateUnknownError\n # XXX Can not import BusinessTemplateUnknownError\n
# except BusinessTemplateUnknownError, error:\n # except BusinessTemplateUnknownError, error:\n
...@@ -75,7 +77,7 @@ if severity == 0:\n ...@@ -75,7 +77,7 @@ if severity == 0:\n
detail = ""\n detail = ""\n
else:\n else:\n
summary = "Upgrade needed"\n summary = "Upgrade needed"\n
detail = "Needed to install %s" % \', \'.join([x[1] for x in bt5_list])\n detail = "Needed to install %s" % \', \'.join(bt5_list)\n
active_result.edit(\n active_result.edit(\n
summary=summary, \n summary=summary, \n
severity=severity,\n severity=severity,\n
......
3 4
\ 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