Author: eallen
Date: 2008-12-16 15:17:44 -0500 (Tue, 16 Dec 2008)
New Revision: 3011
Modified:
mgmt/trunk/cumin/python/cumin/system.py
Log:
Don't display the sysimage slot vis Title if there are no slots.
Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py 2008-12-16 20:07:36 UTC (rev 3010)
+++ mgmt/trunk/cumin/python/cumin/system.py 2008-12-16 20:17:44 UTC (rev 3011)
@@ -141,6 +141,11 @@
return self.page.main.pool.job.get_href(session, job)
class SlotUtilizationGrid(StatUtilizationGrid):
+ def render(self, session):
+ cells = self.get_cells(session)
+ if len(cells) > 0:
+ return super(SystemStats.SlotUtilizationGrid).render(self, session)
+
def get_cells(self, session):
system = self.frame.get_args(session)[0]
action = self.app.model.system.slots
Show replies by date