summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authormichr <lapython-gh@webhippo.net>2012-03-13 08:09:57 -0700
committermichr <lapython-gh@webhippo.net>2012-03-13 08:09:57 -0700
commit3ea3ec0de35db406ab2dd4d19f396ae5dbce88b1 (patch)
treed2dc3543fb6ebba24980863db522bc57abef427d /docs/tutorials/wiki2/authorization.rst
parentb262016e29d6b271836fc09145e65227e9fc3d92 (diff)
parent533c89ebe807f02f5eae3240e770864b21f78168 (diff)
downloadpyramid-3ea3ec0de35db406ab2dd4d19f396ae5dbce88b1.tar.gz
pyramid-3ea3ec0de35db406ab2dd4d19f396ae5dbce88b1.tar.bz2
pyramid-3ea3ec0de35db406ab2dd4d19f396ae5dbce88b1.zip
Merge pull request #474 from ppaez/wiki-documentation
Clarify two steps in the SQL wiki tutorial
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 900bf0975..5c60640b7 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -189,7 +189,13 @@ visit ``/login``.
We'll need to import some stuff to service the needs of these two functions:
the ``pyramid.view.forbidden_view_config`` class, a number of values from the
``pyramid.security`` module, and a value from our newly added
-``tutorial.security`` package.
+``tutorial.security`` package. Add the following import statements to the
+head of the ``views.py`` file:
+
+.. literalinclude:: src/authorization/tutorial/views.py
+ :lines: 9-18,24-25
+ :linenos:
+ :language: python
Changing Existing Views
-----------------------