From b606d97195187bdb33e334a7a40df501b30e2f48 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 19 Jun 2009 09:24:49 +0000 Subject: - A new ZCML directive was added named ``notfound``. This ZCML directive can be used to name a view that should be invoked when the request can't otherwise be resolved to a view callable. For example:: - A new ZCML directive was added named ``forbidden``. This ZCML directive can be used to name a view that should be invoked when a view callable for a request is found, but cannot be invoked due to an authorization failure. For example:: --- repoze/bfg/tests/test_router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/tests/test_router.py') diff --git a/repoze/bfg/tests/test_router.py b/repoze/bfg/tests/test_router.py index 195d1bba7..1049fa752 100644 --- a/repoze/bfg/tests/test_router.py +++ b/repoze/bfg/tests/test_router.py @@ -184,7 +184,7 @@ class RouterTests(unittest.TestCase): self.registry.registerUtility(factory, INotFoundAppFactory) router = self._makeOne() self.assertEqual(len(logger.messages), 1) - self.failUnless('INotFoundView' in logger.messages[0]) + self.failUnless('notfound_view' in logger.messages[0]) class DummyRequest: def get_response(self, app): return app -- cgit v1.2.3