From ba9d7a35d8800fc2f2b0ed4994c9bc1b81cb7cc2 Mon Sep 17 00:00:00 2001 From: Casey Duncan Date: Sun, 5 Dec 2010 10:38:41 -0700 Subject: add sentence explaining what the decorator do and don't do in a bit more detail --- docs/narr/views.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/narr/views.rst b/docs/narr/views.rst index fe4711ab6..320d20b0e 100644 --- a/docs/narr/views.rst +++ b/docs/narr/views.rst @@ -1507,8 +1507,10 @@ matches any model type, using no permission, registered against requests with any request method, request type, request param, route name, or containment. -The mere existence of a ``@view_config`` decorator doesn't suffice to perform -view configuration. To make :app:`Pyramid` process your +The mere existence of a ``@view_config`` decorator doesn't suffice to +perform view configuration. All that the decorator does is "annotate" +the function with your configuration declarations, it doesn't process +them. To make :app:`Pyramid` process your :class:`pyramid.view.view_config` declarations, you *must* do use the ``scan`` method of a :class:`pyramid.configuration.Configurator`: -- cgit v1.2.3