X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=model.py;h=c8f63318a0adf34235656f7ef73ea28b632177b1;hb=a06427d1c9506ee93888e8f2f80b6c4bdd134527;hp=558d04d9273cb6bb8977de145fb8debbbef5e942;hpb=77f84f1e8242cdc45eb091ab65eef940a23493a6;p=monitor.git diff --git a/model.py b/model.py index 558d04d..c8f6331 100644 --- a/model.py +++ b/model.py @@ -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()) - -