diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-06-19 09:24:49 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-06-19 09:24:49 +0000 |
| commit | b606d97195187bdb33e334a7a40df501b30e2f48 (patch) | |
| tree | 487a09938f408e02757846d62796b582b0902ce3 /repoze/bfg/tests/test_router.py | |
| parent | 65697f35f2670fc93e695a7ddf083320f8a11f1a (diff) | |
| download | pyramid-b606d97195187bdb33e334a7a40df501b30e2f48.tar.gz pyramid-b606d97195187bdb33e334a7a40df501b30e2f48.tar.bz2 pyramid-b606d97195187bdb33e334a7a40df501b30e2f48.zip | |
- 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::
<notfound
view="helloworld.views.notfound_view"/>
- 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::
<forbidden
view="helloworld.views.forbidden_view"/>
Diffstat (limited to 'repoze/bfg/tests/test_router.py')
| -rw-r--r-- | repoze/bfg/tests/test_router.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
