summaryrefslogtreecommitdiff
path: root/repoze/bfg/router.py
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-06-19 09:24:49 +0000
committerChris McDonough <chrism@agendaless.com>2009-06-19 09:24:49 +0000
commitb606d97195187bdb33e334a7a40df501b30e2f48 (patch)
tree487a09938f408e02757846d62796b582b0902ce3 /repoze/bfg/router.py
parent65697f35f2670fc93e695a7ddf083320f8a11f1a (diff)
downloadpyramid-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/router.py')
-rw-r--r--repoze/bfg/router.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py
index d85f599b2..145e0ad7c 100644
--- a/repoze/bfg/router.py
+++ b/repoze/bfg/router.py
@@ -99,13 +99,13 @@ class Router(object):
warning = (
'Instead of registering a utility against the '
'repoze.bfg.interfaces.INotFoundAppFactory interface '
- 'to return a custom notfound response, you should register '
- 'a repoze.bfg.interfaces.INotFoundView. The '
+ 'to return a custom notfound response, you should use the '
+ '"notfound_view" ZCML directive. The '
'INotFoundAppFactory interface was deprecated in'
'repoze.bfg 0.9 and will be removed in a subsequent version '
'of repoze.bfg. See the "Hooks" chapter of the repoze.bfg '
'documentation for more information about '
- 'INotFoundView.')
+ 'the "notfound_view" directive.')
self.logger and self.logger.warn(warning)
def notfound(context, request):
app = notfound_app_factory()