def GET(self): favorites = db.page(to_skip=0) return render.index(favorites)
def GET(self, page_num): favorites = db.page(to_skip=int(page_num)) # get next favorites return render.page(favorites, int(page_num)) # show them in the template