Ejemplo n.º 1
0
 def post(self, tweet_id=None, account_id=None):
     try:
         tweet = Tweet.get_by_id(int(tweet_id))
         tweet.retweet()
         tweet.delete()
         account = Account.get_by_id(int(account_id))
         account.follow()
         account.delete()
         self.response.write('Retweeted and Followed!')
     except Exception, msg:
         self.response.write(msg)