Author: eallen
Date: 2010-10-01 13:49:05 -0400 (Fri, 01 Oct 2010)
New Revision: 4366
Modified:
mgmt/newdata/cumin/python/cumin/grid/pool.py
Log:
Fix for BZ 639382: Filter the pools/collectors by update time more recent than 1 day ago
Modified: mgmt/newdata/cumin/python/cumin/grid/pool.py
===================================================================
--- mgmt/newdata/cumin/python/cumin/grid/pool.py 2010-10-01 13:30:37 UTC (rev 4365)
+++ mgmt/newdata/cumin/python/cumin/grid/pool.py 2010-10-01 17:49:05 UTC (rev 4366)
@@ -46,6 +46,15 @@
self.add_attribute_column(cls.IdleJobs)
self.add_attribute_column(cls.HostsTotal)
+ def init(self):
+ super(PoolSelector, self).init()
+
+ table = self.cls.sql_table
+
+ when = "now() - interval '1 day'"
+ filter = SqlComparisonFilter(table._qmf_update_time, when, ">")
+ self.adapter.query.add_filter(filter)
+
class PoolFrame(ObjectFrame):
def __init__(self, app, name):
cls = app.model.com_redhat_grid.Collector
Show replies by date