Esempio n. 1
0
def push_retweet():
    dbkey = request.POST["dbkey"]
    t = SavedTweets.get(keys=dbkey)
    if t is not None:
        t.tweet_text

        map(lambda ct: xmpp.send_message(ct.addr, t.tweet_text),
            SubscribeContacts.all().fetch(limit=10))

        t.pushed_flag = True
        t.put()