fix fix
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 22 Nov 2005 14:24:03 +0000 (14:24 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Tue, 22 Nov 2005 14:24:03 +0000 (14:24 +0000)
lib/python/Screens/ChannelSelection.py
lib/python/Screens/TimerEntry.py

index d392130..8580186 100644 (file)
@@ -158,7 +158,7 @@ class ChannelSelection(Screen):
 
                self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions", "ContextMenuActions"],
                        {
 
                self["actions"] = ChannelActionMap(["ChannelSelectActions", "OkCancelActions", "ContextMenuActions"],
                        {
-                               "cancel": self.doClose,
+                               "cancel": self.cancel,
                                "ok": self.channelSelected,
                                "mark": self.doMark,
                                "contextMenu": self.doContext,
                                "ok": self.channelSelected,
                                "mark": self.doMark,
                                "contextMenu": self.doContext,
@@ -375,7 +375,7 @@ class ChannelSelection(Screen):
                config.tv.lastservice.value = refstr
                config.tv.lastservice.save()
                
                config.tv.lastservice.value = refstr
                config.tv.lastservice.save()
                
-       def doClose(self):
+       def cancel(self):
                self.close()
 
 class SimpleChannelSelection(ChannelSelection):
                self.close()
 
 class SimpleChannelSelection(ChannelSelection):
@@ -395,6 +395,6 @@ class SimpleChannelSelection(ChannelSelection):
        def doContext(self): # don't show context menu
                pass
        
        def doContext(self): # don't show context menu
                pass
        
-       def doClose(self):
+       def cancel(self):
                self.close(None)
                
\ No newline at end of file
                self.close(None)
                
\ No newline at end of file
index 8b4f6b4..a03435e 100644 (file)
@@ -178,10 +178,9 @@ class TimerEntry(Screen):
                        self.session.openWithCallback(self.finishedChannelSelection, ChannelSelection.SimpleChannelSelection, _("Select channel to record from"))
 
        def finishedChannelSelection(self, args):
                        self.session.openWithCallback(self.finishedChannelSelection, ChannelSelection.SimpleChannelSelection, _("Select channel to record from"))
 
        def finishedChannelSelection(self, args):
-               if (args != None):
-                       self.timer.service_ref = ServiceReference(args)
-                       config.timerentry.service.vals = (str(self.timer.service_ref.getServiceName()),)
-                       self["config"].invalidate(config.timerentry.service)
+               self.timer.service_ref = ServiceReference(args)
+               config.timerentry.service.vals = (str(self.timer.service_ref.getServiceName()),)
+               self["config"].invalidate(config.timerentry.service)
 
        def keyNumberGlobal(self, number):
                print "You pressed number " + str(number)
 
        def keyNumberGlobal(self, number):
                print "You pressed number " + str(number)