summaryrefslogtreecommitdiff
path: root/docs/tutorials
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2012-01-29 13:32:45 -0500
committerChris McDonough <chrism@plope.com>2012-01-29 13:32:45 -0500
commitd1ad7044480901123b9c744b686b579491c36683 (patch)
tree62b50e8453f84be654e62d27a0c977794e18da51 /docs/tutorials
parentd3988b59c7f515d317dedc4e031cc19f19e8bd25 (diff)
downloadpyramid-d1ad7044480901123b9c744b686b579491c36683.tar.gz
pyramid-d1ad7044480901123b9c744b686b579491c36683.tar.bz2
pyramid-d1ad7044480901123b9c744b686b579491c36683.zip
show decorators along with view callables, fixes #393
Diffstat (limited to 'docs/tutorials')
-rw-r--r--docs/tutorials/wiki/authorization.rst4
-rw-r--r--docs/tutorials/wiki2/authorization.rst4
-rw-r--r--docs/tutorials/wiki2/definingviews.rst8
3 files changed, 8 insertions, 8 deletions
diff --git a/docs/tutorials/wiki/authorization.rst b/docs/tutorials/wiki/authorization.rst
index fa18d4a41..8f583ece7 100644
--- a/docs/tutorials/wiki/authorization.rst
+++ b/docs/tutorials/wiki/authorization.rst
@@ -132,14 +132,14 @@ We'll add these views to the existing ``views.py`` file we have in our
project. Here's what the ``login`` view callable will look like:
.. literalinclude:: src/authorization/tutorial/views.py
- :pyobject: login
+ :lines: 83-111
:linenos:
:language: python
Here's what the ``logout`` view callable will look like:
.. literalinclude:: src/authorization/tutorial/views.py
- :pyobject: logout
+ :lines: 113-117
:linenos:
:language: python
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index ab04ea405..56237a1b9 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -159,14 +159,14 @@ logged in user and redirect back to the front page.
The ``login`` view callable will look something like this:
.. literalinclude:: src/authorization/tutorial/views.py
- :pyobject: login
+ :lines: 90-116
:linenos:
:language: python
The ``logout`` view callable will look something like this:
.. literalinclude:: src/authorization/tutorial/views.py
- :pyobject: logout
+ :lines: 118-122
:linenos:
:language: python
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