From 8098c05c2cb147683ab072af4459550eab9f1ee6 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sun, 1 Nov 2009 13:50:35 +0000 Subject: - 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. --- repoze/bfg/urldispatch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'repoze/bfg/urldispatch.py') 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*)') -- cgit v1.2.3