Exemplo n.º 1
0
 def GET(self, word):
     if word != '':
         result = palabro.get(word)
     else:
         result = palabro.getLatest()
     
     if result:
         # get first, previous, next and latest words
         return render.word({'word': result, 'nav_words': palabro.getNavWords(result['date'])})
     else:
         raise web.notfound(render.wordnotfound())
Exemplo n.º 2
0
 def GET(self, word):
     result = palabro.get(word);
     
     if result:
         return render.editWord(result)