Beispiel #1
0
 def get(self, post):
     editing = Post.get_by_id(int(post))
     
     render.header(self)
     render.body(self, 'showEditOne.html', {'post' : editing, 
                                            'redirect' : '/update'})
     render.footer(self)
Beispiel #2
0
 def post(self):
   edited = Post.get_by_id(int(self.request.get('id')))
   edited.title = self.request.get('title')
   edited.body = self.request.get('body')
   edited.put()
   self.redirect('/view/%s' % edited.key().id())