Esempio n. 1
0
    def POST(self):
        form = self.form()

        if not form.validates():
            return render.actionNew(form)

        model.new_action(form.d.name, form.d.is_enable, form.d.description)
        raise web.seeother('/action')
Esempio n. 2
0
 def GET(self):
     form = self.form()
     return render.actionNew(form)