示例#1
0
文件: action.py 项目: akuma/atcforge
    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')
示例#2
0
文件: action.py 项目: akuma/atcforge
 def GET(self, id):
     action = model.get_action(id)
     form = New.form()
     form.fill(action)
     return render.actionEdit(form)