summaryrefslogtreecommitdiff
path: root/docs/narr/resources.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-10-28 14:08:06 -0400
committerChris McDonough <chrism@plope.com>2013-10-28 14:08:06 -0400
commit0f424ae492c4b7f11d526149046fc6467a54e438 (patch)
tree072461e6aa562934077674b609fcc77205bef17b /docs/narr/resources.rst
parente5a0ca90d16ce78e05db71253720fa3082d8da2d (diff)
parent3c2f95e8049bbd45b144d454daa68005361828b2 (diff)
downloadpyramid-0f424ae492c4b7f11d526149046fc6467a54e438.tar.gz
pyramid-0f424ae492c4b7f11d526149046fc6467a54e438.tar.bz2
pyramid-0f424ae492c4b7f11d526149046fc6467a54e438.zip
Merge branch 'security-apis-on-request' of github.com:mgrbyte/pyramid into mgrbyte-security-apis-on-request
Diffstat (limited to 'docs/narr/resources.rst')
-rw-r--r--docs/narr/resources.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/narr/resources.rst b/docs/narr/resources.rst
index b1bb611e5..34d75f2cc 100644
--- a/docs/narr/resources.rst
+++ b/docs/narr/resources.rst
@@ -201,7 +201,7 @@ location-aware resources. These APIs include (but are not limited to)
:func:`~pyramid.traversal.resource_path`,
:func:`~pyramid.traversal.resource_path_tuple`, or
:func:`~pyramid.traversal.traverse`, :func:`~pyramid.traversal.virtual_root`,
-and (usually) :func:`~pyramid.security.has_permission` and
+and (usually) :meth:`~pyramid.request.Request.has_permission` and
:func:`~pyramid.security.principals_allowed_by_permission`.
In general, since so much :app:`Pyramid` infrastructure depends on
@@ -695,10 +695,10 @@ The APIs provided by :ref:`location_module` are used against resources.
These can be used to walk down a resource tree, or conveniently locate one
resource "inside" another.
-Some APIs in :ref:`security_module` accept a resource object as a parameter.
-For example, the :func:`~pyramid.security.has_permission` API accepts a
+Some APIs on the :class:`pyramid.request.Request` accept a resource object as a parameter.
+For example, the :meth:`~pyramid.request.Request.has_permission` API accepts a
resource object as one of its arguments; the ACL is obtained from this
-resource or one of its ancestors. Other APIs in the :mod:`pyramid.security`
-module also accept :term:`context` as an argument, and a context is always a
-resource.
+resource or one of its ancestors. Other security related APIs on the
+:class:`pyramid.request.Request` class also accept :term:`context` as an argument,
+and a context is always a resource.