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
active_result = ActiveResult()\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
# XXX Can not import BusinessTemplateUnknownError\n
# except BusinessTemplateUnknownError, error:\n
......@@ -75,7 +77,7 @@ if severity == 0:\n
detail = ""\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
summary=summary, \n
\ 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