[rhmessaging-commits] rhmessaging commits: r4031 - mgmt/newdata/wooly/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jun 16 15:08:47 EDT 2010


Author: eallen
Date: 2010-06-16 15:08:47 -0400 (Wed, 16 Jun 2010)
New Revision: 4031

Modified:
   mgmt/newdata/wooly/python/wooly/forms.py
Log:
Moved call to Super to end of do_process method for SubmitForms so submit and cancel can be evaluated first

Modified: mgmt/newdata/wooly/python/wooly/forms.py
===================================================================
--- mgmt/newdata/wooly/python/wooly/forms.py	2010-06-16 19:06:24 UTC (rev 4030)
+++ mgmt/newdata/wooly/python/wooly/forms.py	2010-06-16 19:08:47 UTC (rev 4031)
@@ -588,8 +588,6 @@
         self.cancel_button.set(session, True)
 
     def do_process(self, session):
-        super(SubmitForm, self).do_process(session)
-
         if self.cancel_button.get(session):
             self.cancel_button.set(session, False)
 
@@ -601,6 +599,8 @@
         else:
             self.process_display(session)
 
+        super(SubmitForm, self).do_process(session)
+
     # XXX get rid of this?
     def process_return(self, session):
         url = self.return_url.get(session)



More information about the rhmessaging-commits mailing list