Commit a60c7eec authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* display 'Do Nothing' instead of '(None)'.

* wrap the detailed explanation of divergences with '<em>'.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33754 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent becc37bd
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string>python:[(\'(None)\', \'\')] + zip(cell.getCausalityValue().getSolverTitleList(), cell.getCausalityValue().getSolverList())</string> </value> <value> <string>python:[(\'Do Nothing\', \'\')] + zip(cell.getCausalityValue().getSolverTitleList(), cell.getCausalityValue().getSolverList())</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>try:\n <value> <string>try:\n
return [(\'(None)\', \'\')] + [x for x in context.getPortalObject().portal_solvers.getDeliverySolverTranslatedItemList() \\\n return [(\'Do Nothing\', \'\')] + [x for x in context.getPortalObject().portal_solvers.getDeliverySolverTranslatedItemList() \\\n
if x[1] in context.getSolverValue().getDeliverySolverList()]\n if x[1] in context.getSolverValue().getDeliverySolverList()]\n
except AttributeError:\n except AttributeError:\n
return [(\'(None)\', \'\')]\n return [(\'Do Nothing\', \'\')]\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -60,7 +60,7 @@ from Products.PythonScripts.standard import html_quote\n ...@@ -60,7 +60,7 @@ from Products.PythonScripts.standard import html_quote\n
# even if we have several divergence testers, the first\n # even if we have several divergence testers, the first\n
# one is enough for displaying the title.\n # one is enough for displaying the title.\n
tester = context.getCausalityValue()\n tester = context.getCausalityValue()\n
return \'<div>%s</div><div>(%s)</div>\' % (\n return \'<div>%s</div><div><em>(%s)</em></div>\' % (\n
html_quote(tester.getTranslatedTitle()),\n html_quote(tester.getTranslatedTitle()),\n
context.getExplanationMessage())\n context.getExplanationMessage())\n
......
66 67
\ 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