예제 #1
0
파일: index.py 프로젝트: hermzz/palabro
 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())
예제 #2
0
파일: index.py 프로젝트: hermzz/palabro
 def GET(self, word):
     result = palabro.get(word);
     
     if result:
         return render.editWord(result)