fixed missing readonly attribute in sqlhtml, thanks Alan
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user