def get(self, id): '''Load the edit post page.''' current_user = users.get_current_user() post = models.Post.get_by_id(int(id)) if post and post.user.user == current_user: view.renderTemplate(self, 'edit_post.html', { 'post' : post }) else: self.redirect('/')
def get(self): '''Render the home page.''' current_user = users.get_current_user() if current_user: user = models.User.all().filter('user ='******'index.html', { })
def get(self): '''Load the new post page.''' view.renderTemplate(self, 'new_post.html', {})