Author: justi9
Date: 2008-04-08 14:39:06 -0400 (Tue, 08 Apr 2008)
New Revision: 1866
Modified:
mgmt/cumin/python/cumin/exchange.py
Log:
Modernize ExchangeView and add a details tab
Modified: mgmt/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/cumin/python/cumin/exchange.py 2008-04-08 18:09:15 UTC (rev 1865)
+++ mgmt/cumin/python/cumin/exchange.py 2008-04-08 18:39:06 UTC (rev 1866)
@@ -193,33 +193,26 @@
def __init__(self, app, name):
super(ExchangeView, self).__init__(app, name)
- self.status = ExchangeStatus(app, "status")
- self.add_child(self.status)
+ status = ExchangeStatus(app, "status")
+ self.add_child(status)
- self.tabs = TabbedModeSet(app, "tabs")
- self.add_child(self.tabs)
+ self.__tabs = TabbedModeSet(app, "tabs")
+ self.add_child(self.__tabs)
- self.tabs.add_tab(ExchangeStatistics(app, "stats"))
+ self.__tabs.add_tab(ExchangeStatistics(app, "stats"))
- #self.producers = ExchangeProducerSet(app, "producers")
- #self.tabs.add_tab(self.producers)
+ self.__bindings = ExchangeBindingSet(app, "bindings")
+ self.__tabs.add_tab(self.__bindings)
- self.bindings = ExchangeBindingSet(app, "bindings")
- self.tabs.add_tab(self.bindings)
+ self.__tabs.add_tab(CuminDetails(app, "details"))
- def show_producers(self, session):
- return self.tabs.show_mode(session, self.producers);
-
def show_bindings(self, session):
- return self.tabs.show_mode(session, self.bindings);
+ return self.__tabs.show_mode(session, self.__bindings);
def render_script(self, session, queue):
data = "model.xml?class=exchange;id=%i" % queue.id
return "wooly.setIntervalUpdate('%s', updateExchange, 3000)" %
data
- def render_icon_resource(self, session, queue):
- return "exchange-36.png"
-
class ExchangeBindingSet(BindingSet):
def get_args(self, session):
return self.frame.get_args(session)
Show replies by date