diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-10-21 16:37:03 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-10-21 16:37:03 +0000 |
| commit | 0ff9a894dbe1a1d6b71b74649a05bce2a91f5808 (patch) | |
| tree | 9b3a68fc252ebcd36d5a75f5aef39a47857c5e87 | |
| parent | ef5149051623da25d24002132828c658b6dcfee4 (diff) | |
| download | pyramid-0ff9a894dbe1a1d6b71b74649a05bce2a91f5808.tar.gz pyramid-0ff9a894dbe1a1d6b71b74649a05bce2a91f5808.tar.bz2 pyramid-0ff9a894dbe1a1d6b71b74649a05bce2a91f5808.zip | |
- The name ``root`` is available as an attribute of the request
slightly earlier now (before a NewRequest event is emitted).
``root`` is the result of the application "root factory".
| -rw-r--r-- | CHANGES.txt | 4 | ||||
| -rw-r--r-- | repoze/bfg/router.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index f050ab041..79990471e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -17,6 +17,10 @@ Features This is effectively a goto, useable by code that has no capability to otherwise return a response. +- The name ``root`` is available as an attribute of the request + slightly earlier now (before a NewRequest event is emitted). + ``root`` is the result of the application "root factory". + Bug Fixes --------- diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index c87065e14..03b929d8f 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -72,6 +72,7 @@ class Router(object): # into the environ directly attrs = environ.setdefault('webob.adhoc_attrs', {}) attrs['registry'] = registry + attrs['root'] = root threadlocals['request'] = request registry.has_listeners and registry.notify(NewRequest(request)) |
