Author: justi9
Date: 2008-03-27 14:51:34 -0400 (Thu, 27 Mar 2008)
New Revision: 1807
Modified:
mgmt/cumin/python/cumin/broker.py
mgmt/cumin/python/cumin/broker.strings
Log:
Rename BrokerLinkSet to PeerSet
Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py 2008-03-27 18:47:36 UTC (rev 1806)
+++ mgmt/cumin/python/cumin/broker.py 2008-03-27 18:51:34 UTC (rev 1807)
@@ -123,9 +123,9 @@
return link
-class BrokerLinkSet(CuminTable):
+class PeerSet(CuminTable):
def __init__(self, app, name):
- super(BrokerLinkSet, self).__init__(app, name)
+ super(PeerSet, self).__init__(app, name)
col = self.AddressColumn(app, "addr")
self.add_column(col)
@@ -141,7 +141,7 @@
def render_title(self, session, broker):
count = self.get_item_count(session, broker)
- return "Broker Links %s" % fmt_count(count)
+ return "Peers %s" % fmt_count(count)
def render_sql_where(self, session, reg):
vhost = reg.getDefaultVhost()
@@ -254,7 +254,7 @@
self.tabs.add_tab(self.BrokerQueueTab(app, "queues"))
self.tabs.add_tab(self.BrokerExchangeTab(app, "exchanges"))
self.tabs.add_tab(self.BrokerClientTab(app, "clients"))
- self.tabs.add_tab(BrokerLinkSet(app, "links"))
+ self.tabs.add_tab(PeerSet(app, "links"))
self.missing = self.BrokerMissing(app, "missing")
self.body.add_mode(self.missing)
Modified: mgmt/cumin/python/cumin/broker.strings
===================================================================
--- mgmt/cumin/python/cumin/broker.strings 2008-03-27 18:47:36 UTC (rev 1806)
+++ mgmt/cumin/python/cumin/broker.strings 2008-03-27 18:51:34 UTC (rev 1807)
@@ -39,7 +39,7 @@
{hidden_inputs}
</form>
-[BrokerLinkSet.sql]
+[PeerSet.sql]
select
l.id,
l.address as addr,
@@ -55,7 +55,7 @@
{sql_orderby}
{sql_limit}
-[BrokerLinkSet.count_sql]
+[PeerSet.count_sql]
select count(*)
from link as l
join vhost as v on v.id = l.vhost_id
Show replies by date