Beispiel #1
0
    def get_word(self):
        word_id = self.request.GET.get('id', None)
        if not word_id:
            return None

        return Word.get_by_id(long(word_id))
Beispiel #2
0
 def _get_instance(self):
     _id = self.request.GET.get('id', None)
     if _id:
         self.instance = Word.get_by_id(long(_id))
     else:
         self.instance = None