SQLFORM grid allows ignore_rw, thanks Niphlod

This commit is contained in:
Massimo Di Pierro
2011-12-18 10:58:13 -06:00
parent f65d7b6349
commit 2d1e90f6f9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 1.99.4 (2011-12-18 10:39:51) stable
Version 1.99.4 (2011-12-18 10:58:10) stable
+2 -2
View File
@@ -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,