def POST(self, id): form = New.form() if not form.validates(): return render.actionEdit(form) model.update_action(id, form.d.name, form.d.is_enable, form.d.description) raise web.seeother('/action')
def GET(self, id): action = model.get_action(id) form = New.form() form.fill(action) return render.actionEdit(form)