Added actions updates in AJAX forms
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 Mar 2015 11:57:04 +0100
changeset 6 601da9b11b67
parent 5 95b0c8d43b47
child 7 51b8d68d9c4d
Added actions updates in AJAX forms
src/pyams_form/form.py
--- a/src/pyams_form/form.py	Sat Feb 28 15:15:07 2015 +0100
+++ b/src/pyams_form/form.py	Wed Mar 11 11:57:04 2015 +0100
@@ -280,6 +280,7 @@
         data, errors = {}, ()
         for form in self.forms:
             form.updateWidgets()
+            form.updateActions()
             form_data, form_errors = form.extractData()
             data.update(form_data)
             errors = errors + form_errors
@@ -357,6 +358,7 @@
         data, errors = {}, ()
         for form in self.forms:
             form.updateWidgets()
+            form.updateActions()
             form_data, form_errors = form.extractData()
             data.update(form_data)
             errors = errors + form_errors