From 81a833da2adff04d11b9228406bbc1528be65c64 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 24 Jul 2010 07:04:49 +0000 Subject: - 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. --- repoze/bfg/tests/test_paster.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'repoze/bfg/tests/test_paster.py') 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): -- cgit v1.2.3