示例#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)