Mercurial > piecrust2
diff foodtruck/views/sources.py @ 610:efc1dc916e7c
admin: Configuration changes.
* Move publish targets to site configuration.
* Add direct accessor for the current site.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 28 Jan 2016 22:17:58 -0800 |
parents | 2713b54b5d76 |
children | c1a94e1beb9d |
line wrap: on
line diff
--- a/foodtruck/views/sources.py Thu Jan 28 22:16:47 2016 -0800 +++ b/foodtruck/views/sources.py Thu Jan 28 22:17:58 2016 -0800 @@ -10,7 +10,7 @@ @app.route('/list/<source_name>/<int:page_num>') @login_required def list_source(source_name, page_num): - site = g.sites.get().piecrust_app + site = g.site.piecrust_app source = site.getSource(source_name) if source is None: abort(400)