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

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Nov 5 16:34:11 EST 2008


Author: eallen
Date: 2008-11-05 16:34:11 -0500 (Wed, 05 Nov 2008)
New Revision: 2747

Modified:
   mgmt/trunk/cumin/python/cumin/queue.py
Log:
Default queue add durability option to non-durable.
Restore the cancel method for the queue add dialog. 

Modified: mgmt/trunk/cumin/python/cumin/queue.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/queue.py	2008-11-05 21:32:04 UTC (rev 2746)
+++ mgmt/trunk/cumin/python/cumin/queue.py	2008-11-05 21:34:11 UTC (rev 2747)
@@ -398,6 +398,7 @@
 
             self.option1_title = "Durable"
             self.option2_title = "Transient"
+            self.param.default = "transient"
 
         def render_title(self, session):
             return "Durable?"
@@ -512,6 +513,11 @@
                 return "Ring Strict"
 
 class QueueAdd(QueueForm):
+    def process_cancel(self, session):
+        branch = session.branch()
+        self.frame.show_view(branch)
+        self.page.set_redirect_url(session, branch.marshal())
+
     def process_submit(self, session):
         queue_name = self.namef.get(session)
         durable = self.durable.get(session)




More information about the rhmessaging-commits mailing list