diff options
| author | Chris McDonough <chrism@agendaless.com> | 2010-07-24 07:04:49 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2010-07-24 07:04:49 +0000 |
| commit | 81a833da2adff04d11b9228406bbc1528be65c64 (patch) | |
| tree | 736765ad3018e4b9e432b4af4bb923fdbdcc898f /repoze/bfg/tests/test_paster.py | |
| parent | 8e18ea4a560b4456ace86bdef6060304de053238 (diff) | |
| download | pyramid-81a833da2adff04d11b9228406bbc1528be65c64.tar.gz pyramid-81a833da2adff04d11b9228406bbc1528be65c64.tar.bz2 pyramid-81a833da2adff04d11b9228406bbc1528be65c64.zip | |
- A new method of the ``Configurator`` exists:
``set_request_factory``. If used, this method will set the factory
used by the :mod:`repoze.bfg` router to create all request objects.
- The ``Configurator`` constructor takes an additional argument:
``request_factory``. If used, this argument will set the factory
used by the :mod:`repoze.bfg` router to create all request objects.
- The ``Hooks`` narrative chapter now contains a section about
changing the request factory.
Diffstat (limited to 'repoze/bfg/tests/test_paster.py')
| -rw-r--r-- | repoze/bfg/tests/test_paster.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/repoze/bfg/tests/test_paster.py b/repoze/bfg/tests/test_paster.py index 147e9854d..43837b5f0 100644 --- a/repoze/bfg/tests/test_paster.py +++ b/repoze/bfg/tests/test_paster.py @@ -144,7 +144,11 @@ class DummyIPShell(object): dummy_root = Dummy() -dummy_registry = Dummy() +class DummyRegistry(object): + def queryUtility(self, iface, default=None): + return default + +dummy_registry = DummyRegistry() class DummyInteractor: def __call__(self, banner, local): |
