fixed missing readonly attribute in sqlhtml, thanks Alan

This commit is contained in:
Massimo Di Pierro
2012-04-04 08:20:48 -05:00
parent c268c3eacf
commit 90e6e2a2a2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.7 (2012-04-01 23:37:42) dev
Version 1.99.7 (2012-04-04 08:20:14) dev
+2 -1
View File
@@ -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