Commit 59219143 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

display (None) for empty item.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33525 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14da429f
......@@ -54,10 +54,10 @@
<item>
<key> <string>_body</string> </key>
<value> <string>try:\n
return [(\'\', \'\')] + [x for x in context.getPortalObject().portal_solvers.getDeliverySolverTranslatedItemList() \\\n
return [(\'(None)\', \'\')] + [x for x in context.getPortalObject().portal_solvers.getDeliverySolverTranslatedItemList() \\\n
if x[1] in context.getSolverValue().getDeliverySolverList()]\n
except AttributeError:\n
return [(\'\', \'\')]\n
return [(\'(None)\', \'\')]\n
</string> </value>
</item>
<item>
......
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