summaryrefslogtreecommitdiff
path: root/docs/narr/models.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2009-12-27 22:47:08 +0000
committerChris McDonough <chrism@agendaless.com>2009-12-27 22:47:08 +0000
commit8c56ae41b6f0221d72f1a255ce1a3ac467b98d79 (patch)
treed310d7be53ae0f4760e09b437975dcebce52d02b /docs/narr/models.rst
parentd7b12a30237d51d761cab0b08c5da1163ea534ee (diff)
downloadpyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.tar.gz
pyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.tar.bz2
pyramid-8c56ae41b6f0221d72f1a255ce1a3ac467b98d79.zip
- Added manual index entries to generated index.
Diffstat (limited to 'docs/narr/models.rst')
-rw-r--r--docs/narr/models.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/narr/models.rst b/docs/narr/models.rst
index fdd8af9bc..0369ab178 100644
--- a/docs/narr/models.rst
+++ b/docs/narr/models.rst
@@ -8,6 +8,9 @@ traverse when :term:`traversal` is used. A model instance is also
generated as a result of :term:`url dispatch`. A model instance is
exposed to :term:`view` code as the :term:`context` of a view.
+.. index::
+ pair: model; constructor
+
Defining a Model Constructor
----------------------------
@@ -30,6 +33,9 @@ A model constructor may be essentially any Python object which is
callable, and which returns a model instance. In the above example,
the ``BlogEntry`` class can be "called", returning a model instance.
+.. index::
+ pair: model; interfaces
+
Model Instances Which Implement Interfaces
------------------------------------------
@@ -132,6 +138,13 @@ See the :ref:`views_chapter` for more information about why providing
models with an interface can be an interesting thing to do with regard
to :term:`view` lookup.
+.. index::
+ single: model graph
+ single: traversal graph
+ single: object graph
+ single: container nodes
+ single: leaf nodes
+
Defining a Graph of Model Instances for Traversal
-------------------------------------------------
@@ -156,6 +169,9 @@ policy on model instance nodes in the graph:
See :ref:`traversal_chapter` for more information about how traversal
works against model instances.
+.. index::
+ pair: location-aware; model
+
.. _location_aware:
Location-Aware Model Instances
@@ -229,6 +245,8 @@ and so on.
to every path and URL generated (as opposed to a single leading
slash or empty tuple element).
+.. index::
+ pair: model; API functions
:mod:`repoze.bfg` API Functions That Act Against Models
-------------------------------------------------------