예제 #1
0
파일: main.py 프로젝트: wenyuan/ueditor_py
 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('/')
예제 #2
0
파일: main.py 프로젝트: wenyuan/ueditor_py
 def GET(self, id):
     post = Article.get_post(int(id))
     form = New.form()
     form.fill(post)
     return render.edit(post, form)
예제 #3
0
파일: main.py 프로젝트: wenyuan/ueditor_py
 def GET(self, id):
     post = Article.get_post(int(id))
     return render.view(post)