diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-06 18:25:02 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-06 18:25:02 +0000 |
| commit | e0f40e9e706043e9f5637ae39a082c60cbb5cb4b (patch) | |
| tree | 56fd7ad1e76058ba0986e0827d540a092052eae6 | |
| parent | 016f34a8a4112dda179b5fa1914f76a6785e4d91 (diff) | |
| download | pyramid-e0f40e9e706043e9f5637ae39a082c60cbb5cb4b.tar.gz pyramid-e0f40e9e706043e9f5637ae39a082c60cbb5cb4b.tar.bz2 pyramid-e0f40e9e706043e9f5637ae39a082c60cbb5cb4b.zip | |
Express intent better.
| -rw-r--r-- | repoze/bfg/testing.py | 10 |
1 files 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 """ |
