diff --git a/VERSION b/VERSION index 82e4e480..08849d5c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 1.99.4 (2011-12-18 10:39:51) stable +Version 1.99.4 (2011-12-18 10:58:10) stable diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index c10e9f05..35eddf3d 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1563,7 +1563,7 @@ class SQLFORM(FORM): check_authorization() table = db[request.args[-2]] record = table(request.args[-1]) or redirect(URL('error')) - form = SQLFORM(table,record,upload=upload, + form = SQLFORM(table,record,upload=upload,ignore_rw=ignore_rw, readonly=True,_class='web2py_form') res = DIV(buttons(edit=editable,record=record),form, formfooter,_class=_class) @@ -1575,7 +1575,7 @@ class SQLFORM(FORM): check_authorization() table = db[request.args[-2]] record = table(request.args[-1]) or redirect(URL('error')) - edit_form = SQLFORM(table,record,upload=upload, + edit_form = SQLFORM(table,record,upload=upload,ignore_rw=ignore_rw, deletable=deletable, _class='web2py_form') edit_form.process(formname=formname,