def render(self, req): id = req.args.get("id") if id: autotimer.remove(int(id[0])) return self.returnResult(req, True, _("AutoTimer was removed")) else: return self.returnResult(req, False, _("missing parameter \"id\""))
def render(self, req): id = req.args.get("id") if id: autotimer.remove(int(id[0])) if config.plugins.autotimer.always_write_config.value: autotimer.writeXml() return self.returnResult(req, True, _("AutoTimer was removed")) else: return self.returnResult(req, False, _("missing parameter \"id\""))