summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt4
-rw-r--r--repoze/bfg/router.py1
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))