def POST(self, action): if action == "del": email = web.input(email=None).email model.del_mail(email) return render.maillist(model.get_maillist())
def GET(self, action): emails = model.get_maillist() return render.maillist(emails)