From 2d1e90f6f94a297cd585251947cb8e30a407badc Mon Sep 17 00:00:00 2001 From: Massimo Di Pierro Date: Sun, 18 Dec 2011 10:58:13 -0600 Subject: [PATCH] SQLFORM grid allows ignore_rw, thanks Niphlod --- VERSION | 2 +- gluon/sqlhtml.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,