Author: justi9
Date: 2007-11-02 12:29:36 -0400 (Fri, 02 Nov 2007)
New Revision: 1217
Modified:
mgmt/cumin/python/cumin/broker.py
mgmt/cumin/python/cumin/broker.strings
mgmt/cumin/python/cumin/widgets.strings
Log:
Hooks broker status up to real dummy data and makes it use
CuminStatus.
Modified: mgmt/cumin/python/cumin/broker.py
===================================================================
--- mgmt/cumin/python/cumin/broker.py 2007-11-02 16:22:00 UTC (rev 1216)
+++ mgmt/cumin/python/cumin/broker.py 2007-11-02 16:29:36 UTC (rev 1217)
@@ -223,10 +223,16 @@
return value
+class BrokerStatus(CuminStatus):
+ pass
+
class BrokerView(Widget):
def __init__(self, app, name):
super(BrokerView, self).__init__(app, name)
+ self.status = BrokerStatus(app, "status")
+ self.add_child(self.status)
+
self.tabs = TabSet(app, "tabs")
self.add_child(self.tabs)
Modified: mgmt/cumin/python/cumin/broker.strings
===================================================================
--- mgmt/cumin/python/cumin/broker.strings 2007-11-02 16:22:00 UTC (rev 1216)
+++ mgmt/cumin/python/cumin/broker.strings 2007-11-02 16:29:36 UTC (rev 1217)
@@ -141,12 +141,8 @@
</script>
[BrokerView.html]
-<div class="mstatus green" id="{id}">
- <h2>Broker Status</h2>
+{status}
- <div>0 errors, 0 warnings</div>
-</div>
-
<h1>{title}</h1>
<table class="props">
Modified: mgmt/cumin/python/cumin/widgets.strings
===================================================================
--- mgmt/cumin/python/cumin/widgets.strings 2007-11-02 16:22:00 UTC (rev 1216)
+++ mgmt/cumin/python/cumin/widgets.strings 2007-11-02 16:29:36 UTC (rev 1217)
@@ -12,3 +12,10 @@
<script>
wooly.doc().elem("{id}").node.elements[1].focus();
</script>
+
+[CuminStatus.html]
+<div id="{id}" class="{class}">
+ <h2>Status</h2>
+
+ <div>{status_info}</div>
+</div>