pcucontrol owned in %files section
[monitor.git] / model.py
index 3628c00..c8f6331 100644 (file)
--- a/model.py
+++ b/model.py
@@ -61,7 +61,7 @@ class LogRoll:
                                        cmp = re.compile(filter[key])
                                        res = cmp.search(log.__getattribute__(key))
                                        if res != None:
-                                               print "found match in log: %s  %s ~=~ %s" % (log, key, filter[key])
+                                               #print "found match in log: %s  %s ~=~ %s" % (log, key, filter[key])
                                                if log.time > time.time() - timerange:
                                                        print "returning log b/c it occured within time."
                                                        return log
@@ -108,16 +108,4 @@ class Diagnose(MonRecord):
                MonRecord.__init__(self, data)
                return
 
-class Action(MonRecord):
-       def __init__(self, host, data):
-               self.host = host
-               MonRecord.__init__(self, data)
-               return
-
-       def deltaDays(self, delta):
-               t = datetime.fromtimestamp(self.__dict__['time'])
-               d = t + timedelta(delta)
-               self.__dict__['time'] = time.mktime(d.timetuple())
-               
-