From 864e84f0e01ccd8bf408335b37562f9ca3d6e35f Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Thu, 24 Dec 2009 04:11:09 +0000 Subject: Roles. --- repoze/bfg/configuration.py | 4 ++-- repoze/bfg/view.py | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/repoze/bfg/configuration.py b/repoze/bfg/configuration.py index 7ac284de0..150e90ed8 100644 --- a/repoze/bfg/configuration.py +++ b/repoze/bfg/configuration.py @@ -491,8 +491,8 @@ class Configurator(object): The ``renderer`` attribute is optional. If it is not defined, the "null" renderer is assumed (no rendering is - performed and the value is passed back to the upstream BFG - machinery unmolested). + performed and the value is passed back to the upstream + :mod:`repoze.bfg` machinery unmolested). wrapper diff --git a/repoze/bfg/view.py b/repoze/bfg/view.py index d1c69205e..61286f46c 100644 --- a/repoze/bfg/view.py +++ b/repoze/bfg/view.py @@ -539,11 +539,12 @@ def append_slash_notfound_view(context, request): - Or use the :meth:`repoze.bfg.configuration.Configurator.notfound` + Or use the + :meth:`repoze.bfg.configuration.Configurator.set_notfound_view` method if you don't use ZCML:: from repoze.bfg.view import append_slash_notfound_view - config.notfound(append_slash_notfound_view) + config.set_notfound_view(append_slash_notfound_view) See also :ref:`changing_the_notfound_view`. -- cgit v1.2.3