author | sylvain.thenault@logilab.fr |
Wed, 08 Apr 2009 20:36:39 +0200 | |
branch | tls-sprint |
changeset 1306 | e70ad982374a |
parent 1305 | 395ef7f2b95b |
child 1307 | 8c3336c5ddba |
web/formfields.py | file | annotate | diff | comparison | revisions |
--- a/web/formfields.py Wed Apr 08 20:36:11 2009 +0200 +++ b/web/formfields.py Wed Apr 08 20:36:39 2009 +0200 @@ -130,8 +130,10 @@ def format_single_value(self, req, value): """return value suitable for display""" - if value is None: + if value is None or value is False: return u'' + if value is True: + return u'1' return unicode(value) def get_widget(self, form):