Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
erp5
Commits
792c57d2
Commit
792c57d2
authored
Mar 20, 2012
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also display list of bt5 to update
parent
76dbb2f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseBt5.xml
...eItem/portal_skins/erp5_promise/Alarm_checkPromiseBt5.xml
+4
-2
bt5/erp5_promise/bt/revision
bt5/erp5_promise/bt/revision
+1
-1
No files found.
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseBt5.xml
View file @
792c57d2
...
@@ -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
...
...
bt5/erp5_promise/bt/revision
View file @
792c57d2
3
4
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment