summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authorCarlos de la Guardia <cguardia@yahoo.com>2011-05-05 19:01:17 -0700
committerCarlos de la Guardia <cguardia@yahoo.com>2011-05-05 19:01:17 -0700
commit5fe0e395aeb540dcbee79c85a419aa43aaf4a2c0 (patch)
treef98c545560d0fd093237145f1310f32d19941c0d /docs/tutorials/wiki2/authorization.rst
parent99a32e83826b3f1fae5da0ff26295fa71abe676b (diff)
parentbb84f4866d9023f10b2403f97074b9add3787d29 (diff)
downloadpyramid-5fe0e395aeb540dcbee79c85a419aa43aaf4a2c0.tar.gz
pyramid-5fe0e395aeb540dcbee79c85a419aa43aaf4a2c0.tar.bz2
pyramid-5fe0e395aeb540dcbee79c85a419aa43aaf4a2c0.zip
Merge pull request #184 from mmerickel/fix_auth_tutorial
Fix auth tutorial docs/code
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 19d438fad..b1d3b0001 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -94,8 +94,7 @@ Note that that the
:class:`pyramid.authentication.AuthTktAuthenticationPolicy` constructor
accepts two arguments: ``secret`` and ``callback``. ``secret`` is a string
representing an encryption key used by the "authentication ticket" machinery
-represented by this policy: it is required. The ``callback`` is a string,
-representing a :term:`dotted Python name`, which points at the
+represented by this policy: it is required. The ``callback`` is a
``groupfinder`` function in the current directory's ``security.py`` file. We
haven't added that module yet, but we're about to.
@@ -104,7 +103,7 @@ We'll also change ``__init__.py``, adding a call to
:term:`view callable`. This is also known as a :term:`forbidden view`:
.. literalinclude:: src/authorization/tutorial/__init__.py
- :lines: 24-26,41-43
+ :lines: 41-43
:linenos:
:language: python
@@ -114,7 +113,7 @@ A forbidden view configures our newly created login view to show up when
A ``logout`` :term:`view callable` will allow users to log out later:
.. literalinclude:: src/authorization/tutorial/__init__.py
- :lines: 27-28
+ :lines: 26,34
:linenos:
:language: python