summaryrefslogtreecommitdiff
path: root/docs/narr/urldispatch.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2010-12-18 15:53:49 -0500
committerChris McDonough <chrism@plope.com>2010-12-18 15:53:49 -0500
commit738a2b5f3eb44da7036a31005144e5252827ac38 (patch)
tree80e10d2ae215b2e0e1f248354b6c9a5e11406cd5 /docs/narr/urldispatch.rst
parentaa6c4267b330a5665dcb7c98d75fe21f8eeececb (diff)
parent70119302324e5bf5627344f90c62ef31b6e43005 (diff)
downloadpyramid-738a2b5f3eb44da7036a31005144e5252827ac38.tar.gz
pyramid-738a2b5f3eb44da7036a31005144e5252827ac38.tar.bz2
pyramid-738a2b5f3eb44da7036a31005144e5252827ac38.zip
Merge branch 'model2resource'
Conflicts: docs/narr/views.rst
Diffstat (limited to 'docs/narr/urldispatch.rst')
-rw-r--r--docs/narr/urldispatch.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/narr/urldispatch.rst b/docs/narr/urldispatch.rst
index f0ace76ba..739a826c1 100644
--- a/docs/narr/urldispatch.rst
+++ b/docs/narr/urldispatch.rst
@@ -375,7 +375,7 @@ order of route configuration declarations is very important.
The order that routes declarations are evaluated is the order in which
they are added to the application at startup time. This is unlike
:term:`traversal`, which depends on emergent behavior which happens as
-a result of traversing a graph.
+a result of traversing a resource tree.
For routes added via the :mod:`pyramid.config.Configurator.add_route`
method, the order that routes are evaluated is the order in which they are
@@ -414,7 +414,7 @@ found via :term:`view lookup`.
:linenos:
config.add_route('abc', '/abc', view='myproject.views.theview',
- factory='myproject.models.root_factory')
+ factory='myproject.resources.root_factory')
The factory can either be a Python object or a :term:`dotted Python name` (a
string) which points to such a Python object, as it is above.
@@ -459,7 +459,7 @@ represent neither predicates nor view configuration information.
A Python object (often a function or a class) or a :term:`dotted
Python name` to such an object that will generate a
:app:`Pyramid` :term:`context` object when this route
- matches. For example, ``mypackage.models.MyFactoryClass``. If this
+ matches. For example, ``mypackage.resources.MyFactoryClass``. If this
argument is not specified, the traversal root factory will be used.
``traverse``
@@ -613,7 +613,7 @@ represent neither predicates nor view configuration information.
``view_renderer``
This is either a single string term (e.g. ``json``) or a string
- implying a path or :term:`resource specification`
+ implying a path or :term:`asset specification`
(e.g. ``templates/views.pt``). If the renderer value is a single
term (does not contain a dot ``.``), the specified term will be used
to look up a renderer implementation, and that renderer
@@ -979,10 +979,10 @@ An example of using a route with a factory:
config.add_route('idea', 'ideas/{idea}',
view='myproject.views.idea_view',
- factory='myproject.models.Idea')
+ factory='myproject.resources.Idea')
-The above route will manufacture an ``Idea`` model as a
-:term:`context`, assuming that ``mypackage.models.Idea`` resolves to a
+The above route will manufacture an ``Idea`` resource as a
+:term:`context`, assuming that ``mypackage.resources.Idea`` resolves to a
class that accepts a request in its ``__init__``. For example:
.. code-block:: python