Author: justi9
Date: 2008-04-08 14:45:21 -0400 (Tue, 08 Apr 2008)
New Revision: 1867
Modified:
mgmt/cumin/python/cumin/client.py
Log:
Modernize ClientView and add a details tab
Modified: mgmt/cumin/python/cumin/client.py
===================================================================
--- mgmt/cumin/python/cumin/client.py 2008-04-08 18:39:06 UTC (rev 1866)
+++ mgmt/cumin/python/cumin/client.py 2008-04-08 18:45:21 UTC (rev 1867)
@@ -205,27 +205,26 @@
def __init__(self, app, name):
super(ClientView, self).__init__(app, name)
- self.status = ClientStatus(app, "status")
- self.add_child(self.status)
+ status = ClientStatus(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(ClientStatistics(app, "stats"))
+ self.__tabs.add_tab(ClientStatistics(app, "stats"))
- self.sessions = ClientSessionSet(app, "sessions")
- self.tabs.add_tab(self.sessions)
+ self.__sessions = ClientSessionSet(app, "sessions")
+ self.__tabs.add_tab(self.__sessions)
+ self.__tabs.add_tab(CuminDetails(app, "details"))
+
def show_sessions(self, session):
- return self.tabs.show_mode(session, self.sessions)
+ return self.__tabs.show_mode(session, self.__sessions)
def render_script(self, session, queue):
data = "model.xml?class=client;id=%i" % queue.id
return "wooly.setIntervalUpdate('%s', updateClient, 3000)" %
data
- def render_icon_resource(self, session, queue):
- return "client-36.png"
-
class ClientStatistics(TabbedModeSet):
def __init__(self, app, name):
super(ClientStatistics, self).__init__(app, name)
Show replies by date