Example #1
0
 def POST(self, id):
     form = New.form()
     post = Article.get_post(int(id))
     if not form.validates():
         return render.edit(post, form)
     Article.update_post(int(id), form.d.article_title, form.d.article_content)
     raise web.seeother('/')