From e0f40e9e706043e9f5637ae39a082c60cbb5cb4b Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 6 Nov 2009 18:25:02 +0000 Subject: Express intent better. --- repoze/bfg/testing.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py index f03fa94fd..7765a17cc 100644 --- a/repoze/bfg/testing.py +++ b/repoze/bfg/testing.py @@ -46,8 +46,8 @@ def registerModels(models): def __init__(self, context): self.context = context - def __call__(self, environ): - path = environ['PATH_INFO'] + def __call__(self, request): + path = request['PATH_INFO'] ob = models[path] from repoze.bfg.traversal import traversal_path traversed = traversal_path(path) @@ -272,9 +272,9 @@ def registerSettings(dictarg=None, **kw): class DummyRootFactory(object): __parent__ = None __name__ = None - def __init__(self, environ): - if 'bfg.routes.matchdict' in environ: - self.__dict__.update(environ['bfg.routes.matchdict']) + def __init__(self, request): + if 'bfg.routes.matchdict' in request: + self.__dict__.update(request['bfg.routes.matchdict']) class DummySecurityPolicy: """ A standin for both an IAuthentication and IAuthorization policy """ -- cgit v1.2.3