Author: eallen
Date: 2008-08-26 10:59:13 -0400 (Tue, 26 Aug 2008)
New Revision: 2359
Modified:
mgmt/trunk/cumin/python/cumin/broker.py
mgmt/trunk/cumin/python/cumin/brokerlink.py
mgmt/trunk/cumin/python/cumin/exchange.py
mgmt/trunk/cumin/python/cumin/queue.py
mgmt/trunk/cumin/python/cumin/system.py
Log:
Manually set the default sort column
Modified: mgmt/trunk/cumin/python/cumin/broker.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/broker.py 2008-08-26 14:58:03 UTC (rev 2358)
+++ mgmt/trunk/cumin/python/cumin/broker.py 2008-08-26 14:59:13 UTC (rev 2359)
@@ -27,6 +27,7 @@
col = self.NameColumn(app, "name")
self.add_column(col)
+ self.set_default_column(col)
col = self.GroupsColumn(app, "groups")
self.add_column(col)
Modified: mgmt/trunk/cumin/python/cumin/brokerlink.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/brokerlink.py 2008-08-26 14:58:03 UTC (rev 2358)
+++ mgmt/trunk/cumin/python/cumin/brokerlink.py 2008-08-26 14:59:13 UTC (rev 2359)
@@ -23,6 +23,7 @@
col = self.AddressColumn(app, "addr")
self.add_column(col)
+ self.set_default_column(col)
col = self.DurableColumn(app, "durable")
self.add_column(col)
@@ -133,6 +134,7 @@
col = self.ExchangeColumn(app, "exchange")
self.add_column(col)
+ self.set_default_column(col)
col = self.KeyColumn(app, "key")
self.add_column(col)
Modified: mgmt/trunk/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/exchange.py 2008-08-26 14:58:03 UTC (rev 2358)
+++ mgmt/trunk/cumin/python/cumin/exchange.py 2008-08-26 14:59:13 UTC (rev 2359)
@@ -41,6 +41,7 @@
col = self.NameColumn(app, "name")
self.add_column(col)
+ self.set_default_column(col)
col = self.ProducersColumn(app, "name")
col.alignment = "right"
@@ -306,6 +307,7 @@
self.add_child(self.__remove)
self.show_column("q_id")
+ self.set_default_column_name("q_id")
def render_title(self, session, exchange):
return "Queue Bindings %s" % \
Modified: mgmt/trunk/cumin/python/cumin/queue.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/queue.py 2008-08-26 14:58:03 UTC (rev 2358)
+++ mgmt/trunk/cumin/python/cumin/queue.py 2008-08-26 14:59:13 UTC (rev 2359)
@@ -288,6 +288,7 @@
self.add_child(self.__remove)
self.show_column("e_id")
+ self.set_default_column_name("e_id")
def render_add_queue_binding_url(self, session, vhost):
branch = session.branch()
Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py 2008-08-26 14:58:03 UTC (rev 2358)
+++ mgmt/trunk/cumin/python/cumin/system.py 2008-08-26 14:59:13 UTC (rev 2359)
@@ -19,6 +19,7 @@
col = self.NameColumn(app, "name")
self.add_column(col)
+ self.set_default_column(col)
def render_title(self, session, *args):
count = System.select().count()
Show replies by date