[rhmessaging-commits] rhmessaging commits: r4287 - mgmt/newdata/cumin/python/cumin/messaging.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Sep 14 16:43:08 EDT 2010


Author: justi9
Date: 2010-09-14 16:43:08 -0400 (Tue, 14 Sep 2010)
New Revision: 4287

Modified:
   mgmt/newdata/cumin/python/cumin/messaging/broker.py
Log:
Use the broker object's name, rather than the vhost's, for the broker view

Modified: mgmt/newdata/cumin/python/cumin/messaging/broker.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/messaging/broker.py	2010-09-14 18:05:44 UTC (rev 4286)
+++ mgmt/newdata/cumin/python/cumin/messaging/broker.py	2010-09-14 20:43:08 UTC (rev 4287)
@@ -70,7 +70,7 @@
         self.group = SessionAttribute(self, "group")
 
         frame = "main.messaging.broker"
-        col = ObjectLinkColumn(app, "name", vhost.name, vhost._id, frame)
+        col = ObjectLinkColumn(app, "name", broker.name, vhost._id, frame)
         self.add_column(col)
 
         self.add_attribute_column(system.nodeName)
@@ -122,8 +122,8 @@
         self.brokerlink = BrokerLinkFrame(app, "link", self.broker)
         self.add_mode(self.brokerlink)
 
-        # self.view = ObjectView(app, "view", self.broker)
-        # self.replace_child(self.view)
+        self.view = ObjectView(app, "view", self.broker)
+        self.replace_child(self.view)
 
         self.view.add_tab(QueueSelector(app, "queues", self.object))
         self.view.add_tab(ExchangeSelector(app, "exchanges", self.object))
@@ -138,6 +138,9 @@
         self.move_messages = MoveMessages(app, self)
         self.engroup = BrokerEngroup(app, self)
 
+    def get_title(self, session):
+        return self.broker.get(session).name
+
     def do_process(self, session):
         super(BrokerFrame, self).do_process(session)
 



More information about the rhmessaging-commits mailing list