diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-11 23:30:35 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-11 23:30:35 +0000 |
| commit | 2d74688f6564c325077044c4b870c6f966baad91 (patch) | |
| tree | a536611d8ad9a816afd139b1f140bde34e61647a /repoze/bfg/router.py | |
| parent | 3011338a75fe905a150ab93c97830b39c55b4ca1 (diff) | |
| download | pyramid-2d74688f6564c325077044c4b870c6f966baad91.tar.gz pyramid-2d74688f6564c325077044c4b870c6f966baad91.tar.bz2 pyramid-2d74688f6564c325077044c4b870c6f966baad91.zip | |
Add security policy checks.
Diffstat (limited to 'repoze/bfg/router.py')
| -rw-r--r-- | repoze/bfg/router.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index 3e51832d5..bd7df2c94 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -33,12 +33,14 @@ class Router: app = HTTPFound(add_slash=True) else: request.subpath = subpath + request.view_name = name app = queryMultiAdapter((context, request), IViewFactory, name=name, default=_marker) if app is _marker: app = HTTPNotFound(request.url) else: - app = getMultiAdapter((app, request), IWSGIApplicationFactory) + app = getMultiAdapter((context, request, app), + IWSGIApplicationFactory) return app(environ, start_response) def make_app(root_policy, package=None, default_redirects=True, |
