diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-01 13:50:35 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-01 13:50:35 +0000 |
| commit | 8098c05c2cb147683ab072af4459550eab9f1ee6 (patch) | |
| tree | e76a2b43d976cf99f39c24dc33f83780e9d85b30 /repoze/bfg/urldispatch.py | |
| parent | c32af05d5914a85967e01127eb4b1765e43788e9 (diff) | |
| download | pyramid-8098c05c2cb147683ab072af4459550eab9f1ee6.tar.gz pyramid-8098c05c2cb147683ab072af4459550eab9f1ee6.tar.bz2 pyramid-8098c05c2cb147683ab072af4459550eab9f1ee6.zip | |
- The routes root factory called route factories and the default route
factory with an environ rather than a request. One of the symptoms
of this bug: applications generated using the ``bfg_zodb`` paster
template in 1.1a9 did not work properly.
Diffstat (limited to 'repoze/bfg/urldispatch.py')
| -rw-r--r-- | repoze/bfg/urldispatch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py index 185baa1a1..715fb07e4 100644 --- a/repoze/bfg/urldispatch.py +++ b/repoze/bfg/urldispatch.py @@ -82,9 +82,9 @@ class RoutesRootFactory(object): if iface is not None: directlyProvides(request, iface) factory = route.factory or self.default_root_factory - return factory(environ) + return factory(request) - return self.default_root_factory(environ) + return self.default_root_factory(request) # stolen from bobo and modified route_re = re.compile(r'(/:[a-zA-Z]\w*)') |
