diff options
| author | Fernando Correa Neto <fcdoth@gmail.com> | 2008-12-09 23:16:56 +0000 |
|---|---|---|
| committer | Fernando Correa Neto <fcdoth@gmail.com> | 2008-12-09 23:16:56 +0000 |
| commit | 67b8a1ceda0d73739b18045c8b405a1d22b4480a (patch) | |
| tree | ba340a43cfd0f030833b8714137f7439bbb45feb /repoze/bfg/router.py | |
| parent | d1925330a4b9c9fae0ac28025b5c1023a0a5c0a6 (diff) | |
| download | pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.tar.gz pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.tar.bz2 pyramid-67b8a1ceda0d73739b18045c8b405a1d22b4480a.zip | |
Add context.root to router so the root model can be easily accessed from a view
Diffstat (limited to 'repoze/bfg/router.py')
| -rw-r--r-- | repoze/bfg/router.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index cd040c0c8..89101cb5e 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -48,6 +48,7 @@ class Router(object): settings = queryUtility(ISettings) context, name, subpath = traverser(environ) + request.root = root request.context = context request.view_name = name request.subpath = subpath |
