introduce BlinkingPointConditional, which blinks, if a condition-function returns...
[vuplus_dvbapp] / timer.py
index 7855c09..42bafe3 100644 (file)
--- a/timer.py
+++ b/timer.py
@@ -27,6 +27,9 @@ class TimerEntry:
                self.repeated |= (2 ** day)
                print "Repeated: " + str(self.repeated)
                
+       def isRunning(self):
+               return self.state == self.StateRunning
+               
        # update self.begin and self.end according to the self.repeated-flags
        def processRepeated(self):
                print "ProcessRepeated"
@@ -146,11 +149,13 @@ class Timer:
                if w.state < TimerEntry.StateEnded:
                        bisect.insort(self.timer_list, w)
                else:
-                       bisect.insort(self.processed_timers, w)
                        if (w.repeated != 0):
                                w.processRepeated()
                                w.state = TimerEntry.StateWait
                                self.addTimerEntry(w)
+                       else:
+                               bisect.insort(self.processed_timers, w)
+
        
        def processActivation(self):
                t = int(time.time()) + 1