diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-24 00:19:15 -0700 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-24 00:19:15 -0700 |
| commit | 50242db18dcafe01c755e22d6d45310bc5f5f9f3 (patch) | |
| tree | c57c9a9797e29027c027c4eb65ad4735ca7a6214 /docs/tutorials/wiki/definingviews.rst | |
| parent | acefa30d7f2329acd545ab479fb983d988972f05 (diff) | |
| parent | 012b9762cd0b114b6afbf2d6356554b51706804a (diff) | |
| download | pyramid-50242db18dcafe01c755e22d6d45310bc5f5f9f3.tar.gz pyramid-50242db18dcafe01c755e22d6d45310bc5f5f9f3.tar.bz2 pyramid-50242db18dcafe01c755e22d6d45310bc5f5f9f3.zip | |
Merge pull request #285 from michr/012b9762
fix up all the ..note and ..warnings.
Diffstat (limited to 'docs/tutorials/wiki/definingviews.rst')
| -rw-r--r-- | docs/tutorials/wiki/definingviews.rst | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/tutorials/wiki/definingviews.rst b/docs/tutorials/wiki/definingviews.rst index 9d783f8cb..ed3a84118 100644 --- a/docs/tutorials/wiki/definingviews.rst +++ b/docs/tutorials/wiki/definingviews.rst @@ -7,7 +7,9 @@ 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 :app:`Pyramid` view can also be defined as callable +.. note:: + + A :app:`Pyramid` view can also be defined as callable which accepts *only* a :term:`request` argument. You'll see this one-argument pattern used in other :app:`Pyramid` tutorials and applications. Either calling convention will work in any @@ -253,7 +255,9 @@ the below: .. literalinclude:: src/views/tutorial/templates/view.pt :language: xml -.. note:: The names available for our use in a template are always those that +.. note:: + + The names available for our use in a template are always those that are present in the dictionary returned by the view callable. But our templates make use of a ``request`` object that none of our tutorial views return in their dictionary. This value appears as if "by magic". |
