SQLFORM grid allows ignore_rw, thanks Niphlod
This commit is contained in:
@@ -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
@@ -1563,7 +1563,7 @@ class SQLFORM(FORM):
|
|||||||
check_authorization()
|
check_authorization()
|
||||||
table = db[request.args[-2]]
|
table = db[request.args[-2]]
|
||||||
record = table(request.args[-1]) or redirect(URL('error'))
|
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')
|
readonly=True,_class='web2py_form')
|
||||||
res = DIV(buttons(edit=editable,record=record),form,
|
res = DIV(buttons(edit=editable,record=record),form,
|
||||||
formfooter,_class=_class)
|
formfooter,_class=_class)
|
||||||
@@ -1575,7 +1575,7 @@ class SQLFORM(FORM):
|
|||||||
check_authorization()
|
check_authorization()
|
||||||
table = db[request.args[-2]]
|
table = db[request.args[-2]]
|
||||||
record = table(request.args[-1]) or redirect(URL('error'))
|
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,
|
deletable=deletable,
|
||||||
_class='web2py_form')
|
_class='web2py_form')
|
||||||
edit_form.process(formname=formname,
|
edit_form.process(formname=formname,
|
||||||
|
|||||||
Reference in New Issue
Block a user