From 0ff9a894dbe1a1d6b71b74649a05bce2a91f5808 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 21 Oct 2009 16:37:03 +0000 Subject: - 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". --- repoze/bfg/router.py | 1 + 1 file changed, 1 insertion(+) (limited to 'repoze') 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)) -- cgit v1.2.3