Mercurial > piecrust2
diff foodtruck/views/edit.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 | c67dcc0fa80f |
children | a920b2ab1f31 |
line wrap: on
line diff
--- a/foodtruck/views/edit.py Thu Jan 28 22:16:47 2016 -0800 +++ b/foodtruck/views/edit.py Thu Jan 28 22:17:58 2016 -0800 @@ -17,7 +17,7 @@ @app.route('/edit/<path:slug>', methods=['GET', 'POST']) @login_required def edit_page(slug): - site = g.sites.get() + site = g.site site_app = site.piecrust_app rp = get_requested_page(site_app, '/site/%s/%s' % (g.sites.current_site, slug))