remove unneeded code
[enigma2.git] / lib / python / Screens / TimerEntry.py
index fa75b5c0963c6b7d8bf62e06aa87e2933d55eb11..e8e3d4c00c95545572f08342a1ac0ecc431bf6aa 100644 (file)
@@ -33,7 +33,7 @@ class TimerEntry(Screen, ConfigListScreen):
                        "ok": self.keySelect,
                        "save": self.keyGo,
                        "cancel": self.keyCancel,
-               }, -1)
+               }, -2)
 
                self.list = []
                ConfigListScreen.__init__(self, self.list, session = session)
@@ -88,10 +88,10 @@ class TimerEntry(Screen, ConfigListScreen):
                        self.timerentry_repeated = ConfigSelection(default = repeated, choices = [("daily", _("daily")), ("weekly", _("weekly")), ("weekdays", _("Mon-Fri")), ("user", _("user defined"))])
 
                        self.timerentry_startdate = ConfigDateTime(default = self.timer.begin, formatstring = _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_starttime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.begin))), int(time.strftime("%M", time.localtime(self.timer.begin)))])
+                       self.timerentry_starttime = ConfigClock(default = self.timer.begin)
 
                        self.timerentry_enddate = ConfigDateTime(default = self.timer.end, formatstring =  _("%d.%B %Y"), increment = 86400)
-                       self.timerentry_endtime = ConfigClock(default = [int(time.strftime("%H", time.localtime(self.timer.end))), int(time.strftime("%M", time.localtime(self.timer.end)))])
+                       self.timerentry_endtime = ConfigClock(default = self.timer.end)
 
                        self.timerentry_weekday = ConfigSelection(default = weekday_table[weekday], choices = [("mon",_("Monday")), ("tue", _("Tuesday")), ("wed",_("Wednesday")), ("thu", _("Thursday")), ("fri", _("Friday")), ("sat", _("Saturday")), ("sun", _("Sunday"))])
 
@@ -192,12 +192,6 @@ class TimerEntry(Screen, ConfigListScreen):
                        ConfigListScreen.keyLeft(self)
                        self.newConfig()
 
-       def keyRightCallback(self, configPath):
-               currentConfigPath = self["config"].getCurrent()[1].parent.getConfigPath()
-               # check if we are still on the same config entry
-               if (currentConfigPath == configPath):
-                       self.keyRight()
-
        def keyRight(self):
                if self["config"].getCurrent() is self.channelEntry:
                        self.keySelect()