X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FScreens%2FTimerEdit.py;h=0abb42a81fe5a07da0101e50876fa1d6d4f07c1e;hp=213094307e9918506d87c289a3da25eb6f8e0ba6;hb=841bc3b1be82929ebed8d18ea16c08690aa3c42e;hpb=b72e934d80c1d57d18b3e9d69470604b3180cee5 diff --git a/lib/python/Screens/TimerEdit.py b/lib/python/Screens/TimerEdit.py index 2130943..0abb42a 100644 --- a/lib/python/Screens/TimerEdit.py +++ b/lib/python/Screens/TimerEdit.py @@ -13,7 +13,7 @@ from ServiceReference import ServiceReference from TimerEntry import TimerEntry, TimerLog from Tools.BoundFunction import boundFunction from time import time -from timer import TimerEntry +from timer import TimerEntry as RealTimerEntry class TimerEditList(Screen): EMPTY = 0 @@ -177,9 +177,9 @@ class TimerEditList(Screen): def fillTimerList(self): #helper function to move finished timers to end of list def eol_compare(x, y): - if x[0].state != y[0].state and x[0].state == TimerEntry.StateEnded or y[0].state == TimerEntry.StateEnded: + if x[0].state != y[0].state and x[0].state == RealTimerEntry.StateEnded or y[0].state == RealTimerEntry.StateEnded: return cmp(x[0].state, y[0].state) - return cmp(x[0].begin, x[1].begin) + return cmp(x[0].begin, y[0].begin) list = self.list del list[:]