From 3add1b9a5f5210f966db354026a09fe2a263c660 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 17 Sep 2008 18:46:04 +0000 Subject: - Routes URL dispatch did not have access to the WSGI environment, so conditions such as method=GET did not work. --- repoze/bfg/urldispatch.py | 1 + 1 file changed, 1 insertion(+) (limited to 'repoze/bfg/urldispatch.py') diff --git a/repoze/bfg/urldispatch.py b/repoze/bfg/urldispatch.py index 0be937ab0..46812390a 100644 --- a/repoze/bfg/urldispatch.py +++ b/repoze/bfg/urldispatch.py @@ -41,6 +41,7 @@ class RoutesMapper(object): self.mapper.create_regs([]) self._regs_created = True path = environ.get('PATH_INFO', '/') + self.mapper.environ = environ args = self.mapper.match(path) if args: context_factory = args.get('context_factory', _marker) -- cgit v1.2.3