on_failure in grid, fixed issue 1232, thanks dev.ldhughes

This commit is contained in:
mdipierro
2012-12-19 11:37:56 -06:00
parent af85a2cf25
commit 02d488c458
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.2 (2012-12-19 11:23:59) dev
Version 2.3.2 (2012-12-19 11:37:10) dev
+3
View File
@@ -1682,6 +1682,7 @@ class SQLFORM(FORM):
maxtextlengths={},
maxtextlength=20,
onvalidation=None,
onfailure=None,
oncreate=None,
onupdate=None,
ondelete=None,
@@ -1878,6 +1879,7 @@ class SQLFORM(FORM):
create_form.process(formname=formname,
next=referrer,
onvalidation=onvalidation,
onfailure=onfailure,
onsuccess=oncreate)
res = DIV(buttons(), create_form, formfooter, _class=_class)
res.create_form = create_form
@@ -1916,6 +1918,7 @@ class SQLFORM(FORM):
update_form.process(
formname=formname,
onvalidation=onvalidation,
onfailure=onfailure,
onsuccess=onupdate,
next=referrer)
res = DIV(buttons(view=details, record=record),