From 97a9b81eac4b871c65ff24097565194e0b024ee3 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 15 Jan 2006 12:11:14 +0000 Subject: follow timer changes --- lib/python/Components/TimerList.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/TimerList.py b/lib/python/Components/TimerList.py index 47c49d3f..d79187d1 100644 --- a/lib/python/Components/TimerList.py +++ b/lib/python/Components/TimerList.py @@ -31,7 +31,7 @@ def TimerEntryComponent(timer, processed): repeatedtext = "" days = [ "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun" ] - if (timer.repeated != 0): + if not timer.repeated: flags = timer.repeated count = 0 for x in range(0, 7): @@ -46,9 +46,9 @@ def TimerEntryComponent(timer, processed): res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 50, 300, 20, 1, RT_HALIGN_LEFT|RT_VALIGN_CENTER, repeatedtext + ("%s, %s ... %s" % (FuzzyTime(timer.begin) + FuzzyTime(timer.end)[1:])))) if not processed: - if timer.state == TimerEntry.StateWait: + if timer.state == TimerEntry.StateWaiting: state = "waiting" - elif timer.state == TimerEntry.StatePrepare: + elif timer.state == TimerEntry.StatePrepared: state = "about to start" elif timer.state == TimerEntry.StateRunning: state = "recording..." -- cgit v1.2.3