diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-29 13:23:31 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-29 13:23:31 -0400 |
| commit | 197f0cb39d0a865476405dda21ad0d3e20ee0789 (patch) | |
| tree | 061f4595339022831dcd2c31275d0964eed77647 /docs/narr/security.rst | |
| parent | 66ecc57eb00063edfa01d66f8d6f4495d21d79b5 (diff) | |
| download | pyramid-197f0cb39d0a865476405dda21ad0d3e20ee0789.tar.gz pyramid-197f0cb39d0a865476405dda21ad0d3e20ee0789.tar.bz2 pyramid-197f0cb39d0a865476405dda21ad0d3e20ee0789.zip | |
bfg_view -> view_config
Diffstat (limited to 'docs/narr/security.rst')
| -rw-r--r-- | docs/narr/security.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index 5782837aa..63d1cad25 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -181,16 +181,16 @@ For example, the following declaration protects the view named /> The equivalent view registration including the ``add`` permission name -may be performed via the ``@bfg_view`` decorator: +may be performed via the ``@view_config`` decorator: .. ignore-next-block .. code-block:: python :linenos: - from pyramid.view import bfg_view + from pyramid.view import view_config from models import Blog - @bfg_view(context=Blog, name='add_entry.html', permission='add') + @view_config(context=Blog, name='add_entry.html', permission='add') def blog_entry_add_view(request): """ Add blog entry code goes here """ pass |
