diff options
| author | Chris McDonough <chrism@plope.com> | 2010-12-18 02:27:14 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-12-18 02:27:14 -0500 |
| commit | fb6a5ce52a275f7798e82a34b5907ea118cbd2ff (patch) | |
| tree | 29e80d0eb681676d1e0eb2707ca764dbf5491864 /docs/narr/extending.rst | |
| parent | bf89764a7e3ccab6133c9ad43b8d9af4f5c4083b (diff) | |
| download | pyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.tar.gz pyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.tar.bz2 pyramid-fb6a5ce52a275f7798e82a34b5907ea118cbd2ff.zip | |
model -> resource; resource -> asset
Diffstat (limited to 'docs/narr/extending.rst')
| -rw-r--r-- | docs/narr/extending.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/extending.rst b/docs/narr/extending.rst index 1f9fd1288..9802a01f6 100644 --- a/docs/narr/extending.rst +++ b/docs/narr/extending.rst @@ -191,15 +191,15 @@ the original application with slight tweaks. For example: :linenos: <view - context="theoriginalapplication.models.SomeModel" + context="theoriginalapplication.resources.SomeResource" name="theview" view=".views.a_view_that_does_something_slightly_different" /> -A similar pattern can be used to *extend* the application with -``<view>`` declarations. Just register a new view against some -existing model type and make sure the URLs it implies are available on -some other page rendering. +A similar pattern can be used to *extend* the application with ``<view>`` +declarations. Just register a new view against some existing resource type +(using ``context``) and make sure the URLs it implies are available on some +other page rendering. .. index:: pair: overriding; routes |
