Example #1
0
 def get(self, action=None, key=None):
   if action:
     if action == 'delete':
       status = Post.get_single_by_key(key)
       status.delete()
       return self.redirect_back('deleted')
     return self.redirect_back('noaction')
   posts = Post.get_statuses(num=100, cached=False)
   self.render('statuses', {
     'posts': posts,
     'post_type': 'status'
   })