summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/definingviews.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
-rw-r--r--docs/tutorials/wiki/definingviews.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst
index 797eee0d9..bbda3d45c 100644
--- a/docs/tutorials/wiki/definingviews.rst
+++ b/docs/tutorials/wiki/definingviews.rst
@@ -2,16 +2,16 @@
Defining Views
==============
-A :term:`view callable` in a traversal-based :mod:`pyramid`
+A :term:`view callable` in a traversal-based :app:`Pyramid`
application is typically a simple Python function that accepts two
parameters: :term:`context`, and :term:`request`. A view callable is
assumed to return a :term:`response` object.
-.. note:: A :mod:`pyramid` view can also be defined as callable
+.. note:: A :app:`Pyramid` view can also be defined as callable
which accepts *one* arguments: a :term:`request`. You'll see this
- one-argument pattern used in other :mod:`pyramid` tutorials and
+ one-argument pattern used in other :app:`Pyramid` tutorials and
applications. Either calling convention will work in any
- :mod:`pyramid` application; the calling conventions can be used
+ :app:`Pyramid` application; the calling conventions can be used
interchangeably as necessary. In :term:`traversal` based
applications, such as this tutorial, the context is used frequently
within the body of a view method, so it makes sense to use the
@@ -22,7 +22,7 @@ assumed to return a :term:`response` object.
to avoid the visual "noise".
We're going to define several :term:`view callable` functions then
-wire them into :mod:`pyramid` using some :term:`view
+wire them into :app:`Pyramid` using some :term:`view
configuration` via :term:`ZCML`.
The source code for this tutorial stage can be browsed via
@@ -102,7 +102,7 @@ Note the contrast between this view callable and the ``view_wiki``
view callable. In the ``view_wiki`` view callable, we return a
:term:`response` object. In the ``view_page`` view callable, we
return a *dictionary*. It is *always* fine to return a
-:term:`response` object from a :mod:`pyramid` view. Returning a
+:term:`response` object from a :app:`Pyramid` view. Returning a
dictionary is allowed only when there is a :term:`renderer` associated
with the view callable in the view configuration.
@@ -116,7 +116,7 @@ this view. It also acts as a handler for the form that is generated
when we want to add a page object. The ``context`` of the
``add_page`` view is always a Wiki object (*not* a Page object).
-The request :term:`subpath` in :mod:`pyramid` is the sequence of
+The request :term:`subpath` in :app:`Pyramid` is the sequence of
names that are found *after* the view name in the URL segments given
in the ``PATH_INFO`` of the WSGI request as the result of
:term:`traversal`. If our add view is invoked via,
@@ -182,7 +182,7 @@ Adding Templates
Most view callables we've added expected to be rendered via a
:term:`template`. Each template is a :term:`Chameleon` template. The
-default templating system in :mod:`pyramid` is a variant of
+default templating system in :app:`Pyramid` is a variant of
:term:`ZPT` provided by Chameleon. These templates will live in the
``templates`` directory of our tutorial package.