diff --git a/VERSION b/VERSION index 76afeb41..66404887 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.2 (2012-12-19 11:23:59) dev +Version 2.3.2 (2012-12-19 11:37:10) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index bd3139bc..c25858cc 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -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),