summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/definingviews.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-01-29 13:36:07 -0500
committerChris McDonough <chrism@plope.com>2012-01-29 13:36:07 -0500
commitbfe8046689b9f9b4273df773a43be19080958193 (patch)
tree1fa043841e64fb861919febbcdfb94ea05fe1f4c /docs/tutorials/wiki2/definingviews.rst
parent76363823a22a709a15b6895430b4eece67da3b39 (diff)
parent71c94c0ae7a36dab1b39585907d8a0c24d377c90 (diff)
downloadpyramid-bfe8046689b9f9b4273df773a43be19080958193.tar.gz
pyramid-bfe8046689b9f9b4273df773a43be19080958193.tar.bz2
pyramid-bfe8046689b9f9b4273df773a43be19080958193.zip
Merge branch '1.3-branch'
Diffstat (limited to 'docs/tutorials/wiki2/definingviews.rst')
-rw-r--r--docs/tutorials/wiki2/definingviews.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorials/wiki2/definingviews.rst b/docs/tutorials/wiki2/definingviews.rst
index 7f533b635..bda0a2eb7 100644
--- a/docs/tutorials/wiki2/definingviews.rst
+++ b/docs/tutorials/wiki2/definingviews.rst
@@ -104,7 +104,7 @@ when a request is made to the root URL of our wiki. It always redirects to
a URL which represents the path to our "FrontPage".
.. literalinclude:: src/views/tutorial/views.py
- :pyobject: view_wiki
+ :lines: 18-21
:linenos:
:language: python
@@ -126,7 +126,7 @@ HTML anchor for each *WikiWord* reference in the rendered HTML using a
compiled regular expression.
.. literalinclude:: src/views/tutorial/views.py
- :pyobject: view_page
+ :lines: 23-44
:linenos:
:language: python
@@ -161,7 +161,7 @@ The ``matchdict`` attribute of the request passed to the ``add_page`` view
will have the values we need to construct URLs and find model objects.
.. literalinclude:: src/views/tutorial/views.py
- :pyobject: add_page
+ :lines: 46-58
:linenos:
:language: python
@@ -197,7 +197,7 @@ request passed to the ``edit_page`` view will have a ``'pagename'`` key
matching the name of the page the user wants to edit.
.. literalinclude:: src/views/tutorial/views.py
- :pyobject: edit_page
+ :lines: 60-73
:linenos:
:language: python