コード例 #1
0
 def GET(self, path):
     page = web.ctx.site.get(path)
     if not page:
         raise web.seeother(path)
     i = web.input(page=0)
     offset = 20 * safeint(i.page)
     limit = 20
     history = get_changes(dict(key=path, limit=limit, offset=offset))
     return render.history(page, history)
コード例 #2
0
ファイル: recentchanges.py プロジェクト: ahvigil/openlibrary
 def GET(self, path):
     page = web.ctx.site.get(path)
     if not page:
         raise web.seeother(path)
     i = web.input(page=0)
     offset = 20 * safeint(i.page)
     limit = 20
     history = get_changes(dict(key=path, limit=limit, offset=offset))
     return render.history(page, history)