from TimerEntry import TimerEntry
from ServiceReference import ServiceReference
from Components.config import config, currentConfigSelectionElement
-from time import localtime
+from time import localtime, time
import xml.dom.minidom
serviceref = cur[1]
if event is None:
return
- newEntry = RecordTimerEntry(serviceref, *parseEvent(event))
+ newEntry = RecordTimerEntry(serviceref, checkOldTimers = True, *parseEvent(event))
self.session.openWithCallback(self.timerEditFinished, TimerEntry, newEntry)
def timerEditFinished(self, answer):
def timerAdd(self):
if not self.isRecording:
- newEntry = RecordTimerEntry(self.currentService, *parseEvent(self.event))
+ newEntry = RecordTimerEntry(self.currentService, checkOldTimers = True, *parseEvent(self.event))
self.session.openWithCallback(self.timerEditFinished, TimerEntry, newEntry)
def timerEditFinished(self, answer):
else:
data = parseEvent(event)
- self.addTimer(RecordTimerEntry(serviceref, *data))
+ self.addTimer(RecordTimerEntry(serviceref, checkOldTimers = True, *data))
def addTimer(self, timer):
self.session.openWithCallback(self.finishedAdd, TimerEntry, timer)