Commit fafdf694 authored by Yusei Tahara's avatar Yusei Tahara

The argument value is sometimes None or other false value.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20253 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 817b2704
...@@ -67,6 +67,9 @@ ...@@ -67,6 +67,9 @@
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>miss = (None, None)\n <value> <string>miss = (None, None)\n
\n \n
if not value:\n
return miss\n
\n
# length of portal type name must be less than 100.\n # length of portal type name must be less than 100.\n
value_first_lowered = value[:100].lower()\n value_first_lowered = value[:100].lower()\n
\n \n
......
218 219
\ 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