diff --git a/VERSION b/VERSION index dabc8478..0e5bb4e5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.7 (2012-04-01 23:37:42) dev +Version 1.99.7 (2012-04-04 08:20:14) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index e21929d4..3f2a4391 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -737,6 +737,8 @@ class SQLFORM(FORM): self.ignore_rw = ignore_rw self.formstyle = formstyle + self.readonly = readonly + nbsp = XML(' ') # Firefox2 does not display fields with blanks FORM.__init__(self, *[], **attributes) ofields = fields @@ -828,7 +830,6 @@ class SQLFORM(FORM): self.custom.widget.id = widget continue - self.readonly = readonly if readonly and not ignore_rw and not field.readable: continue