From 0832e669a14dcd67a73d9cc13063b4bfac81f899 Mon Sep 17 00:00:00 2001 From: Julian Dittrich Date: Fri, 4 Jul 2008 18:32:59 +0000 Subject: [PATCH] inserted two hooks for the webinterface --- autotimer/src/AutoTimerComponent.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/autotimer/src/AutoTimerComponent.py b/autotimer/src/AutoTimerComponent.py index b849a80..adf1fe5 100644 --- a/autotimer/src/AutoTimerComponent.py +++ b/autotimer/src/AutoTimerComponent.py @@ -99,7 +99,22 @@ class AutoTimerComponent(object): self.avoidDuplicateDescription = avoidDuplicateDescription self.bouquets = bouquets self.tags = tags or [] - + + def getName(self): + return self.name + + def setName(self, name): + self.name = name + + def getMatch(self): + return self.match + + def setMatch(self, match): + self.match = match + + def getEntry(self): + return self + def calculateDayspan(self, begin, end, ignore = None): if end[0] < begin[0] or (end[0] == begin[0] and end[1] <= begin[1]): return (begin, end, True) @@ -385,6 +400,9 @@ class AutoTimerComponent(object): def hasDestination(self): return self.destination is not None + + def getDestination(self): + return self.destination is not None def hasCounter(self): return self.matchCount != 0 @@ -440,6 +458,9 @@ class AutoTimerComponent(object): def hasTags(self): return len(self.tags) > 0 + + def getTags(self): + return self.tags def __repr__(self): return ''.join([ -- 2.7.4