Author: eallen
Date: 2010-09-13 12:32:26 -0400 (Mon, 13 Sep 2010)
New Revision: 4278
Modified:
mgmt/newdata/cumin/python/cumin/main.py
Log:
Fix for BZ 623162: Don't show a "Deepest Messages" record if there is no
vhost for the queue yet.
Modified: mgmt/newdata/cumin/python/cumin/main.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/main.py 2010-09-13 14:27:06 UTC (rev 4277)
+++ mgmt/newdata/cumin/python/cumin/main.py 2010-09-13 16:32:26 UTC (rev 4278)
@@ -310,6 +310,18 @@
"is not")
self.adapter.query.add_filter(filter)
+ def render_rows(self, session):
+ data = self.data.get(session)
+
+ writer = Writer()
+
+ for record in data:
+ # if there is no broker id, don't render the row
+ if record[self.adapter.vhost_id_field.index]:
+ writer.write(self.row.render(session, record))
+
+ return writer.to_string()
+
class NameColumn(ObjectLinkColumn):
def render_cell_href(self, session, record):
branch = session.branch()
Show replies by date