diff options
| author | Chris Shenton <chris@koansys.com> | 2012-03-13 16:01:18 -0700 |
|---|---|---|
| committer | Chris Shenton <chris@koansys.com> | 2012-03-13 16:01:18 -0700 |
| commit | 3484f0c0fdbfc05ff9a289255c294379348beba5 (patch) | |
| tree | 6b107a7ad71c7d39832a70a78b6c0b24dbd67786 /docs/tutorials/wiki2/authorization.rst | |
| parent | 1e5ba8a07c583073f1d885156c92a266ceb8dce9 (diff) | |
| parent | 3ea3ec0de35db406ab2dd4d19f396ae5dbce88b1 (diff) | |
| download | pyramid-3484f0c0fdbfc05ff9a289255c294379348beba5.tar.gz pyramid-3484f0c0fdbfc05ff9a289255c294379348beba5.tar.bz2 pyramid-3484f0c0fdbfc05ff9a289255c294379348beba5.zip | |
Merge remote-tracking branch 'upstream/master' into shentonfreude/bug.sqltut-test-populate-settings
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 8 |
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 ----------------------- |
