Author: justi9
Date: 2008-04-08 14:09:15 -0400 (Tue, 08 Apr 2008)
New Revision: 1865
Modified:
mgmt/cumin/python/cumin/queue.py
Log:
Modernize QueueView and add a details tab
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2008-04-08 16:35:27 UTC (rev 1864)
+++ mgmt/cumin/python/cumin/queue.py 2008-04-08 18:09:15 UTC (rev 1865)
@@ -228,30 +228,23 @@
status = QueueStatus(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(QueueStatistics(app, "stats"))
+ self.__tabs.add_tab(QueueStatistics(app, "stats"))
- #self.consumers = QueueConsumerSet(app, "consumers")
- #self.tabs.add_tab(self.consumers)
+ self.__bindings = QueueBindingSet(app, "bindings")
+ self.__tabs.add_tab(self.__bindings)
- self.bindings = QueueBindingSet(app, "bindings")
- self.tabs.add_tab(self.bindings)
+ details = CuminDetails(app, "details")
+ self.__tabs.add_tab(details)
- def show_consumers(self, session):
- self.tabs.show_mode(session, self.consumers);
-
def show_bindings(self, session):
- self.tabs.show_mode(session, self.bindings);
+ self.__tabs.show_mode(session, self.__bindings);
def render_script(self, session, queue):
data = "model.xml?class=queue;id=%i" % queue.id
return "wooly.setIntervalUpdate('%s', updateQueue, 3000)" %
data
-
- def render_icon_resource(self, session, queue):
- return "queue-36.png"
-
class QueueBindingSet(BindingSet):
def get_args(self, session):
return self.frame.get_args(session)
Show replies by date