[rhmessaging-commits] rhmessaging commits: r3130 - mgmt/trunk/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Feb 24 14:29:48 EST 2009


Author: eallen
Date: 2009-02-24 14:29:47 -0500 (Tue, 24 Feb 2009)
New Revision: 3130

Modified:
   mgmt/trunk/cumin/python/cumin/job.py
Log:
Fixed BZ 485952. The submit/cancel buttons now do a manual redirect instead of relying on frame.origin.

Modified: mgmt/trunk/cumin/python/cumin/job.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/job.py	2009-02-23 22:53:27 UTC (rev 3129)
+++ mgmt/trunk/cumin/python/cumin/job.py	2009-02-24 19:29:47 UTC (rev 3130)
@@ -796,7 +796,14 @@
         else:
             item_group = "Other"
         return item_group == group
-                    
+
+    def process_cancel(self, session, job):
+        branch = session.branch()
+        self.ads.set(branch, None) # otherwise url is too long
+        self.page.pop_current_frame(branch)
+        self.page.get_current_frame(branch).show_view(branch)
+        self.page.set_redirect_url(session, branch.marshal())
+        
     def process_submit(self, session, job):
         ads = self.ads.get(session)
         errors = False




More information about the rhmessaging-commits mailing list