[rhmessaging-commits] rhmessaging commits: r1545 - mgmt/cumin/python/cumin.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu Jan 10 10:07:50 EST 2008


Author: justi9
Date: 2008-01-10 10:07:50 -0500 (Thu, 10 Jan 2008)
New Revision: 1545

Modified:
   mgmt/cumin/python/cumin/exchange.py
   mgmt/cumin/python/cumin/queue.py
Log:
Temporarily hides the producers and consumers tabs, as we don't have
data for them.



Modified: mgmt/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/cumin/python/cumin/exchange.py	2008-01-09 19:40:34 UTC (rev 1544)
+++ mgmt/cumin/python/cumin/exchange.py	2008-01-10 15:07:50 UTC (rev 1545)
@@ -122,6 +122,9 @@
             return "Producers"
 
         def render_content(self, session, data):
+            return data["producers"]
+
+            # Restore later
             exchange = Identifiable(data["id"])
             branch = session.branch()
             frame = self.frame().show_exchange(branch, exchange)
@@ -235,8 +238,8 @@
 
         self.tabs.add_tab(ExchangeStatistics(app, "stats"))
 
-        self.producers = ExchangeProducerSet(app, "producers")
-        self.tabs.add_tab(self.producers)
+        #self.producers = ExchangeProducerSet(app, "producers")
+        #self.tabs.add_tab(self.producers)
 
         self.bindings = ExchangeBindingSet(app, "bindings")
         self.tabs.add_tab(self.bindings)

Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py	2008-01-09 19:40:34 UTC (rev 1544)
+++ mgmt/cumin/python/cumin/queue.py	2008-01-10 15:07:50 UTC (rev 1545)
@@ -112,6 +112,9 @@
             return "Consumers"
 
         def render_content(self, session, data):
+            return data["consumers"]
+        
+            # Restore later
             queue = Identifiable(data["id"])
             branch = session.branch()
             frame = self.frame().show_queue(branch, queue)
@@ -241,8 +244,8 @@
 
         self.tabs.add_tab(QueueStatistics(app, "stats"))
 
-        self.consumers = QueueConsumerSet(app, "consumers")
-        self.tabs.add_tab(self.consumers)
+        #self.consumers = QueueConsumerSet(app, "consumers")
+        #self.tabs.add_tab(self.consumers)
 
         self.bindings = QueueBindingSet(app, "bindings")
         self.tabs.add_tab(self.bindings)




More information about the rhmessaging-commits mailing list