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/router.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'repoze/bfg/router.py') 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() -- cgit v1.2.3