+ if self["config"].getCurrent() == self.channelEntry:
+ self.keySelect()
+ else:
+ self["config"].handleKey(config.key["nextElement"])
+ self.newConfig()
+
+ def keySelect(self):
+ if self["config"].getCurrent() == self.channelEntry:
+ self.session.openWithCallback(self.finishedChannelSelection, ChannelSelection.SimpleChannelSelection, _("Select channel to record from"))
+
+ def finishedChannelSelection(self, args):
+ oldref = self.timer.service_ref
+ try:
+ self.timer.service_ref = ServiceReference(args)
+ config.timerentry.service.vals = (str(self.timer.service_ref.getServiceName()),)
+ self["config"].invalidate(config.timerentry.service)
+ except:
+ print "you pressed cancel"
+ self.timer.service_ref = oldref