Commit 6faf6039 authored by Jérome Perrin's avatar Jérome Perrin

There's no reason to change None to '' in the case of default.

The comment explaining why it has been done like this is not true anymore.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30891 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4aa72de6
......@@ -130,13 +130,6 @@ class StaticValue:
value = value.__of__(field)
#value=value() # Mising call ??? XXX Make sure compatible with listbox methods
if id == 'default':
# We make sure we convert values to empty strings
# for most fields (so that we do not get a 'value'
# message on screen)
# This can be overriden by using TALES in the field
if value is None: value = ''
return value
class TALESValue(StaticValue):
......
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