Esempio n. 1
0
 def POST(self, id):
     form = self.form()
     page = model.get_page_by_id(int(id))
     if not form.validates():
         return render.edit(page, form)
     model.update_page(int(id), form.d.url, form.d.title, form.d.content)
     raise web.seeother('/')
Esempio n. 2
0
 def POST(self, id):
     form = self.form()
     page = model.get_page_by_id(int(id))
     if not form.validates():
         return render.edit(page, form)
     model.update_page(int(id), form.d.url, form.d.title, form.d.content)
     raise web.seeother('/')
Esempio n. 3
0
 def GET(self, id):
     page = model.get_page_by_id(int(id))
     form = self.form()
     form.fill(page)
     return render.edit(page, form)
Esempio n. 4
0
 def GET(self, id):
     form = self.form()
     page = model.get_page_by_id(id)
     form.fill(page)
     return render.Edit(form)
Esempio n. 5
0
 def GET(self, id):
     page = model.get_page_by_id(int(id))
     form = self.form()
     form.fill(page)
     return render.edit(page, form)