From 182bbbdcc2eb3c0e65e272a3c41fbf9bdb2b0664 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 2 Jul 2013 07:21:09 -0500 Subject: [PATCH] fixed issue 1562:The dspval of integer value zero is nbsp not 0, thanks iiijjjiii --- VERSION | 2 +- gluon/sqlhtml.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 942e1cb1..83e7040f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.07.02.07.16.53 +Version 2.6.0-development+timestamp.2013.07.02.07.20.31 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 26720803..5db36e7c 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1116,7 +1116,7 @@ class SQLFORM(FORM): inp = self.widgets[field_type].widget(field, default) xfields.append((row_id, label, inp, comment)) - self.custom.dspval[fieldname] = dspval or nbsp + self.custom.dspval[fieldname] = dspval if (dspval is not None) else nbsp self.custom.inpval[ fieldname] = inpval if not inpval is None else '' self.custom.widget[fieldname] = inp