summaryrefslogtreecommitdiff
path: root/docs/narr/resources.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-20 06:10:38 -0400
committerChris McDonough <chrism@plope.com>2011-07-20 06:10:38 -0400
commit6ce1e0cf1a141767ee0aca70786c15dd993347c5 (patch)
treeed279497d354709b63d0fdc2c1e71cb88c424df7 /docs/narr/resources.rst
parent9dfd3436711d6ef5f4a759f43acca859a9391c26 (diff)
downloadpyramid-6ce1e0cf1a141767ee0aca70786c15dd993347c5.tar.gz
pyramid-6ce1e0cf1a141767ee0aca70786c15dd993347c5.tar.bz2
pyramid-6ce1e0cf1a141767ee0aca70786c15dd993347c5.zip
add more index markers
Diffstat (limited to 'docs/narr/resources.rst')
-rw-r--r--docs/narr/resources.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/narr/resources.rst b/docs/narr/resources.rst
index fa8ccc549..0e0d00020 100644
--- a/docs/narr/resources.rst
+++ b/docs/narr/resources.rst
@@ -286,6 +286,9 @@ The shortcut method of the :term:`request` named
For more information about generating resource URLs, see the documentation
for :func:`pyramid.url.resource_url`.
+.. index::
+ pair: resource URL generation; overriding
+
.. _overriding_resource_url_generation:
Overriding Resource URL Generation
@@ -333,6 +336,9 @@ qualified, should end in a slash, and should not contain any query string or
anchor elements (only path elements) to work best with
:func:`~pyramid.url.resource_url`.
+.. index::
+ single: resource path generation
+
Generating the Path To a Resource
---------------------------------
@@ -368,6 +374,9 @@ The resource passed in must be :term:`location`-aware.
The presence or absence of a :term:`virtual root` has no impact on the
behavior of :func:`~pyramid.traversal.resource_path`.
+.. index::
+ pair: resource; finding by path
+
Finding a Resource by Path
--------------------------
@@ -404,6 +413,9 @@ tree does not exist), a :exc:`KeyError` will be raised.
See the :func:`pyramid.traversal.find_resource` documentation for more
information about resolving a path to a resource.
+.. index::
+ pair: resource; lineage
+
Obtaining the Lineage of a Resource
-----------------------------------
@@ -471,6 +483,9 @@ parent (or one of its parent's parents, etc.) is an ancestor.
See :func:`pyramid.location.inside` for more information.
+.. index::
+ pair: resource; finding root
+
Finding the Root Resource
-------------------------
@@ -617,6 +632,9 @@ directly provided by an instance instead of overwriting them like
For more information about how resource interfaces can be used by view
configuration, see :ref:`using_resource_interfaces`.
+.. index::
+ pair: resource; finding by interface or class
+
Finding a Resource With a Class or Interface in Lineage
-------------------------------------------------------