diff options
| author | Paul Everitt <paul@agendaless.com> | 2008-07-24 19:56:57 +0000 |
|---|---|---|
| committer | Paul Everitt <paul@agendaless.com> | 2008-07-24 19:56:57 +0000 |
| commit | e655101482993bde561d49d9bf87d170e8a3a642 (patch) | |
| tree | 24da6b42826f81eb5c770fa67a88d03bb21894df /docs/narr/models.rst | |
| parent | 932675884332070229ee5ada2c163f5e218fdb72 (diff) | |
| download | pyramid-e655101482993bde561d49d9bf87d170e8a3a642.tar.gz pyramid-e655101482993bde561d49d9bf87d170e8a3a642.tar.bz2 pyramid-e655101482993bde561d49d9bf87d170e8a3a642.zip | |
Change more occurrences to mod:repoze
Diffstat (limited to 'docs/narr/models.rst')
| -rw-r--r-- | docs/narr/models.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/models.rst b/docs/narr/models.rst index c56d8e2f5..addbdd9ea 100644 --- a/docs/narr/models.rst +++ b/docs/narr/models.rst @@ -2,8 +2,8 @@ Models ====== *Models* are typically simple Python classes defined in a module. - Model *instances* make up the graph that ``repoze.bfg`` is willing to - traverse. + Model *instances* make up the graph that :mod:`repoze.bfg` is willing + to traverse. Defining a Model ---------------- @@ -34,8 +34,8 @@ object can implement zero or more interfaces. Defining a Graph of Model Instances ----------------------------------- -``repoze.bfg`` expects to be able to traverse a graph of model -instances. ``repoze.bfg`` imposes the following policy on model +:mod:`repoze.bfg` expects to be able to traverse a graph of model +instances. :mod:`repoze.bfg` imposes the following policy on model instance nodes in the graph: - Nodes which contain other nodes (aka "container" nodes) must supply @@ -51,7 +51,7 @@ instance nodes in the graph: Location-Aware Model Instances ------------------------------ - - For ``repoze.bfg`` security and convenience URL-generation + - For :mod:`repoze.bfg` security and convenience URL-generation functions to work properly against a model instance graph, all nodes in the graph should have two attributes:: ``__parent__`` and ``__name__``. The ``__parent__`` attribute should be a reference |
