Author: justi9
Date: 2007-10-23 11:53:46 -0400 (Tue, 23 Oct 2007)
New Revision: 1145
Modified:
mgmt/cumin/python/cumin/exchange.py
mgmt/cumin/python/cumin/page.strings
mgmt/cumin/python/cumin/queue.py
mgmt/cumin/python/cumin/queue.strings
Log:
Adds empty tabs for producers and consumers. Adds a status box to the
main view.
Modified: mgmt/cumin/python/cumin/exchange.py
===================================================================
--- mgmt/cumin/python/cumin/exchange.py 2007-10-23 15:35:09 UTC (rev 1144)
+++ mgmt/cumin/python/cumin/exchange.py 2007-10-23 15:53:46 UTC (rev 1145)
@@ -89,6 +89,7 @@
self.tabs.add_tab(ExchangeBindingSet(app, "bindings"))
self.tabs.add_tab(ExchangeStatistics(app, "stats"))
+ self.tabs.add_tab(self.ExchangeProducers(app, "producers"))
def render_title(self, session, exchange):
return "Exchange '%s'" % exchange.name
@@ -106,6 +107,10 @@
else:
raise Exception()
+ class ExchangeProducers(Widget):
+ def render_title(self, session, queue):
+ return "Producers"
+
class ExchangeBindingSet(ItemSet):
def render_title(self, session, exchange):
return "Bindings (%i)" % len(exchange.binding_items())
Modified: mgmt/cumin/python/cumin/page.strings
===================================================================
--- mgmt/cumin/python/cumin/page.strings 2007-10-23 15:35:09 UTC (rev 1144)
+++ mgmt/cumin/python/cumin/page.strings 2007-10-23 15:53:46 UTC (rev 1145)
@@ -443,8 +443,14 @@
[MainView.html]
<div class="oblock">
+ <div class="mstatus green" id="{id}">
+ <div>0 errors, 0 warnings</div>
+ </div>
+
<h1>{title}</h1>
+ <br/>
+
<ul class="TabSet tabs">{tabs}</ul>
<div class="TabSet mode">{mode}</div>
</div>
Modified: mgmt/cumin/python/cumin/queue.py
===================================================================
--- mgmt/cumin/python/cumin/queue.py 2007-10-23 15:35:09 UTC (rev 1144)
+++ mgmt/cumin/python/cumin/queue.py 2007-10-23 15:53:46 UTC (rev 1145)
@@ -116,6 +116,7 @@
self.tabs.add_tab(QueueBindingSet(app, "bindings"))
self.tabs.add_tab(QueueStatistics(app, "stats"))
+ self.tabs.add_tab(self.QueueConsumers(app, "consumers"))
def render_title(self, session, queue):
return "Queue '%s'" % queue.name
@@ -133,6 +134,10 @@
else:
raise Exception()
+ class QueueConsumers(Widget):
+ def render_title(self, session, queue):
+ return "Consumers"
+
class QueueBindingSet(ItemSet):
def render_title(self, session, queue):
return "Bindings (%i)" % len(queue.binding_items())
Modified: mgmt/cumin/python/cumin/queue.strings
===================================================================
--- mgmt/cumin/python/cumin/queue.strings 2007-10-23 15:35:09 UTC (rev 1144)
+++ mgmt/cumin/python/cumin/queue.strings 2007-10-23 15:53:46 UTC (rev 1145)
@@ -131,6 +131,10 @@
<dt>Latency Tuning</dt><dd>{latency_tuning}</dd>
</dl>
+ <ul class="actions">
+ <li><a href="">Purge Messages</a></li>
+ </ul>
+
{tabs}
</div>
Show replies by date