From 7b9951d34ef42ebe2fdff316fdb80850a92f94cc Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 17 Jan 2009 21:21:21 +0000 Subject: --- docs/narr/urldispatch.rst | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docs') 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. -- cgit v1.2.3