X-Git-Url: https://git.toastfreeware.priv.at/philipp/winterrodeln/wradmin.git/blobdiff_plain/e9709d7b384146aee3ec8317bcdc792e93cbfc8c..c47760d91f75e15682d25ff758ee34985cb82a6e:/wradmin/controllers/gasthaus.py diff --git a/wradmin/controllers/gasthaus.py b/wradmin/controllers/gasthaus.py index a20566e..65514ef 100644 --- a/wradmin/controllers/gasthaus.py +++ b/wradmin/controllers/gasthaus.py @@ -20,7 +20,9 @@ class GasthausController: q = model.meta.Session.query(model.WrInnCache) q = q.order_by(model.WrInnCache.page_title) c = TemplateContext() - c.paginator = paginate.Page(q.all(), page=int(request.args.get('page', 1)), items_per_page = 25) + c.paginator = paginate.Page(q.all(), page=int(request.args.get('page', 1)), + url_maker=lambda page: url_for('gasthaus_list', page=page), + items_per_page=25) return render_genshi_template('gasthaus_list.html', c=c) def view(self, id):