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
Hugo Ricateau
erp5
Commits
2bfe175c
Commit
2bfe175c
authored
Mar 20, 2012
by
Romain Courteaud
Committed by
Sebastien Robin
Aug 23, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not return unexpected details
parent
feead756
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
10 deletions
+25
-10
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseBt5.xml
...eItem/portal_skins/erp5_promise/Alarm_checkPromiseBt5.xml
+4
-2
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseConversionServer.xml
...skins/erp5_promise/Alarm_checkPromiseConversionServer.xml
+4
-1
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseKumofsServer.xml
...tal_skins/erp5_promise/Alarm_checkPromiseKumofsServer.xml
+3
-1
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseMailServer.xml
...ortal_skins/erp5_promise/Alarm_checkPromiseMailServer.xml
+3
-1
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseMemcachedServer.xml
..._skins/erp5_promise/Alarm_checkPromiseMemcachedServer.xml
+5
-2
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseTemplateTool.xml
...tal_skins/erp5_promise/Alarm_checkPromiseTemplateTool.xml
+5
-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 @
2bfe175c
...
@@ -72,12 +72,14 @@ bt5_list = portal.portal_templates.resolveBusinessTemplateListDependency(bt5.spl
...
@@ -72,12 +72,14 @@ bt5_list = portal.portal_templates.resolveBusinessTemplateListDependency(bt5.spl
severity = len(bt5_list)\n
severity = len(bt5_list)\n
if severity == 0:\n
if severity == 0:\n
summary = "Nothing to do."\n
summary = "Nothing to do."\n
detail = "Needed to install %s" % \', \'.join([x[1] for x in bt5_list])\n
else:\n
else:\n
summary = "Upgrade needed"\n
summary = "Upgrade needed"\n
detail = ""\n
active_result.edit(\n
active_result.edit(\n
summary=summary, \n
summary=summary, \n
severity=severity,
\n
severity=severity,\n
detail=
"Needed to install %s" % \', \'.join([x[1] for x in bt5_list])
)\n
detail=
detail
)\n
\n
\n
context.newActiveProcess().postResult(active_result)\n
context.newActiveProcess().postResult(active_result)\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseConversionServer.xml
View file @
2bfe175c
...
@@ -66,14 +66,17 @@ active_result = ActiveResult()\n
...
@@ -66,14 +66,17 @@ active_result = ActiveResult()\n
if promise_url != url:\n
if promise_url != url:\n
severity = 1\n
severity = 1\n
summary = "Conversion Server not configured as expected"\n
summary = "Conversion Server not configured as expected"\n
detail = "Expect %s\\nGot %s" % (promise_url, url)\n
else:\n
else:\n
severity = 0\n
severity = 0\n
summary = "Nothing to do."\n
summary = "Nothing to do."\n
detail = ""\n
\n
\n
active_result.edit(\n
active_result.edit(\n
summary=summary, \n
summary=summary, \n
severity=severity, \n
severity=severity, \n
detail="Expect %s\\nGot %s" % (promise_url, url))\n
detail=detail)\n
\n
\n
\n
context.newActiveProcess().postResult(active_result)\n
context.newActiveProcess().postResult(active_result)\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseKumofsServer.xml
View file @
2bfe175c
...
@@ -58,7 +58,9 @@ promise_url = portal.getPromiseParameter(\'external_service\', \'kumofs_url\')\n
...
@@ -58,7 +58,9 @@ promise_url = portal.getPromiseParameter(\'external_service\', \'kumofs_url\')\n
if promise_url is None:\n
if promise_url is None:\n
return\n
return\n
\n
\n
plugin = portal.portal_memcached.persistent_memcached_plugin\n
plugin = portal.portal_memcached.restrictedTraverse("persistent_memcached_plugin", None)\n
if plugin is None:\n
return\n
\n
\n
url = "memcached://%s/" % plugin.getUrlString()\n
url = "memcached://%s/" % plugin.getUrlString()\n
\n
\n
...
...
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseMailServer.xml
View file @
2bfe175c
...
@@ -77,14 +77,16 @@ active_result = ActiveResult()\n
...
@@ -77,14 +77,16 @@ active_result = ActiveResult()\n
if promise_url != url:\n
if promise_url != url:\n
severity = 1\n
severity = 1\n
summary = "SMTP Server not configured as expected"\n
summary = "SMTP Server not configured as expected"\n
detail = "Expect %s\\nGot %s" % (promise_url, url)\n
else:\n
else:\n
severity = 0\n
severity = 0\n
summary = "Nothing to do."\n
summary = "Nothing to do."\n
detail = ""\n
\n
\n
active_result.edit(\n
active_result.edit(\n
summary=summary, \n
summary=summary, \n
severity=severity, \n
severity=severity, \n
detail=
"Expect %s\\nGot %s" % (promise_url, url)
)\n
detail=
detail
)\n
\n
\n
context.newActiveProcess().postResult(active_result)\n
context.newActiveProcess().postResult(active_result)\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseMemcachedServer.xml
View file @
2bfe175c
...
@@ -67,14 +67,17 @@ active_result = ActiveResult()\n
...
@@ -67,14 +67,17 @@ active_result = ActiveResult()\n
if promise_url != url:\n
if promise_url != url:\n
severity = 1\n
severity = 1\n
summary = "Memcached not configured as expected"\n
summary = "Memcached not configured as expected"\n
detail = "Expect %s\\nGot %s" % (promise_url, url)\n
else:\n
else:\n
severity = 0\n
severity = 0\n
summary = "Nothing to do."\n
summary = "Nothing to do."\n
detail = ""\n
\n
\n
active_result.edit(\n
active_result.edit(\n
summary=summary, \n
summary=summary, \n
severity=severity, \n
severity=severity,\n
detail="Expect %s\\nGot %s" % (promise_url, url))\n
detail=detail)\n
\n
\n
\n
context.newActiveProcess().postResult(active_result)\n
context.newActiveProcess().postResult(active_result)\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_promise/SkinTemplateItem/portal_skins/erp5_promise/Alarm_checkPromiseTemplateTool.xml
View file @
2bfe175c
...
@@ -72,14 +72,17 @@ active_result = ActiveResult()\n
...
@@ -72,14 +72,17 @@ active_result = ActiveResult()\n
if repository_list != promise_repository_list:\n
if repository_list != promise_repository_list:\n
severity = 1\n
severity = 1\n
summary = "Template tool not configured as expected"\n
summary = "Template tool not configured as expected"\n
detail = \'\\n\'.join(promise_repository_list)\n
else:\n
else:\n
severity = 0\n
severity = 0\n
summary = "Nothing to do."\n
summary = "Nothing to do."\n
detail = ""\n
\n
\n
active_result.edit(\n
active_result.edit(\n
summary=summary, \n
summary=summary, \n
severity=severity, \n
severity=severity,\n
detail=\'\\n\'.join(promise_repository_list))\n
detail=detail)\n
\n
\n
\n
context.newActiveProcess().postResult(active_result)\n
context.newActiveProcess().postResult(active_result)\n
</string>
</value>
</string>
</value>
...
...
bt5/erp5_promise/bt/revision
View file @
2bfe175c
1
2
\ 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