Esempio n. 1
0
    def show_next_word(self):
        pos =  self.words_iterator["pos"]
        word = self.words_iterator["words"][pos]
        pos = pos + 1
        self.words_iterator["pos"] = pos
        set_words_iter(self.words_iterator)

        self.response.out.write(template.render("views/test.html", {"word":word}))
Esempio n. 2
0
    def __init__(self):
        i = words_iter()
        if i:
            self.words_iterator = i

        else:
            words = Dictionary.all().filter("twitter_user ="******"words":words,"pos":0}
            set_words_iter(self.words_iterator)