i592: Use full path in various places
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 3 Oct 2011 12:01:13 +0000 (14:01 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Mon, 3 Oct 2011 12:01:13 +0000 (14:01 +0200)
commit05788ef450cd63da4009cea1825323e10e572e43
tree6c0d8abb538a2d8674fd2e335c76ca3153d697a2
parent4d7a93a49303344830021bab5a741148b1adb7c3
i592: Use full path in various places

When running mediagoblin in a sub path on a web server,
most things inside mediagoblin need the "inside path", but
when generating URLs for the webbrowser, full paths are
needed.

urlgen and routes already do that.

Some (mostly pagination and login) need the URL of the
current page. They used request.path_info. But this is the
"inside" path, not the full.

So now there is request.full_path and its used in various
places.
mediagoblin/app.py
mediagoblin/decorators.py
mediagoblin/templates/mediagoblin/utils/pagination.html
mediagoblin/tools/pagination.py