summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-01-17 21:21:21 +0000
committerChris McDonough <chrism@agendaless.com>2009-01-17 21:21:21 +0000
commit7b9951d34ef42ebe2fdff316fdb80850a92f94cc (patch)
tree20c0c0ef2c992e3a5935f2609b395539e99dc414 /docs
parent6d4b3dd6916ed01e3167d2f0dc0e656b53fb21e9 (diff)
downloadpyramid-7b9951d34ef42ebe2fdff316fdb80850a92f94cc.tar.gz
pyramid-7b9951d34ef42ebe2fdff316fdb80850a92f94cc.tar.bz2
pyramid-7b9951d34ef42ebe2fdff316fdb80850a92f94cc.zip
Diffstat (limited to 'docs')
-rw-r--r--docs/narr/urldispatch.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index ad0c313fa..9e4de3dce 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -246,9 +246,12 @@ Here's an example:
import myapp
app = make_app(get_root, myapp)
-Obviously you can do more generic things that inspect the routes match
-dict to see if the ``article`` argument matches a particular string;
-our sample ``add_acl`` function is not very ambitious.
+If the route ``archives/:article`` is matched, :mod:`repoze.bfg` will
+generate an ``Article`` :term:`context` with an ACL on it that allows
+the ``editor`` principal the ``view`` permission. Obviously you can
+do more generic things that inspect the routes match dict to see if
+the ``article`` argument matches a particular string; our sample
+``add_acl`` function is not very ambitious.
.. note:: See :ref:`security_chapter` for more information about
:mod:`repoze.bfg` security and ACLs.