Fix a broken db query.
Merge branch 'pyramid' of github.com:fedora-infra/bodhi into pyramid
Port to pyramid_mako
Pass the route name to add_view instead of passing the view name to add_route.

This was deprecated in Pyramid 1.1 and removed in 1.5a2