Author: eallen
Date: 2008-10-16 14:57:31 -0400 (Thu, 16 Oct 2008)
New Revision: 2644
Modified:
mgmt/trunk/cumin/python/cumin/system.py
Log:
Linking slot.name to system.node_name
Modified: mgmt/trunk/cumin/python/cumin/system.py
===================================================================
--- mgmt/trunk/cumin/python/cumin/system.py 2008-10-16 17:57:57 UTC (rev 2643)
+++ mgmt/trunk/cumin/python/cumin/system.py 2008-10-16 18:57:31 UTC (rev 2644)
@@ -94,10 +94,13 @@
from slot import SlotSet
class SystemSlotSet(SlotSet):
- def render_title(self, session, *args):
- sql = "1 = 1" # XXX
+ def get_args(self, session):
+ return self.frame.get_args(session)
+
+ def render_title(self, session, system):
+ sql = "machine = '%s'" % system.nodeName
return "Grid Slots %s" % fmt_count(Slot.select(sql).count())
- def render_sql_where(self, session, *args):
- sql = "1 = 1" # XXX
+ def render_sql_where(self, session, system):
+ sql = "machine = '%s'" % system.nodeName
return "where %s" % sql