diff --git a/VERSION b/VERSION index 48760a89..c90faa99 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.0.9 (2012-10-04 20:38:49) dev +Version 2.0.9 (2012-10-04 21:45:11) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index 59cb6f6a..b97c4837 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -1825,16 +1825,19 @@ class SQLFORM(FORM): table = db[request.args[-2]] record = table(request.args[-1]) or redirect(URL('error')) sqlformargs.update(editargs) - update_form = SQLFORM(table, record, upload=upload, ignore_rw=ignore_rw, - formstyle=formstyle, deletable=deletable, - _class='web2py_form', - submit_button=T('Submit'), - delete_label=T('Check to delete'), - **sqlformargs) - update_form.process(formname=formname, - onvalidation=onvalidation, - onsuccess=onupdate, - next=referrer) + update_form = SQLFORM( + table, + record, upload=upload, ignore_rw=ignore_rw, + formstyle=formstyle, deletable=deletable, + _class='web2py_form', + submit_button=T('Submit'), + delete_label=T('Check to delete'), + **sqlformargs) + update_form.process( + formname=formname, + onvalidation=onvalidation, + onsuccess=onupdate, + next=referrer) res = DIV(buttons(view=details, record=record), update_form, formfooter, _class=_class) res.create_form = create_form