- self["timerlist"] = TimerList(list)
-
- self["actions"] = ActionMap(["OkCancelActions"],
- {
-# "ok": self.openEdit,
- "cancel": self.close
- })
+ def finishedEdit(self, answer):
+ if (answer[0]):
+ print "Edited timer"
+ self.session.nav.RecordTimer.timeChanged(answer[1])
+ self.fillTimerList()
+ else:
+ print "Timeredit aborted"
+
+ def finishedAdd(self, answer):
+ if (answer[0]):
+ self.session.nav.RecordTimer.record(answer[1])
+ self.fillTimerList()
+ else:
+ print "Timeredit aborted"