Browse files

minor indentation change

  • Loading branch information...
1 parent a23a2c5 commit 20deb56e33bc77100ee46f2125f52b7c35074404 @mdipierro mdipierro committed Oct 4, 2012
Showing with 14 additions and 11 deletions.
  1. +1 −1 VERSION
  2. +13 −10 gluon/sqlhtml.py
View
2 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
View
23 gluon/sqlhtml.py
@@ -1825,16 +1825,19 @@ def buttons(edit=False,view=False,record=None):
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

0 comments on commit 20deb56

Please sign in to comment.