summaryrefslogtreecommitdiff
path: root/repoze
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-10-21 16:37:03 +0000
committerChris McDonough <chrism@agendaless.com>2009-10-21 16:37:03 +0000
commit0ff9a894dbe1a1d6b71b74649a05bce2a91f5808 (patch)
tree9b3a68fc252ebcd36d5a75f5aef39a47857c5e87 /repoze
parentef5149051623da25d24002132828c658b6dcfee4 (diff)
downloadpyramid-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".
Diffstat (limited to 'repoze')
-rw-r--r--repoze/bfg/router.py1
1 files changed, 1 insertions, 0 deletions
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))