summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2/authorization.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2020-01-16 10:34:45 -0600
committerMichael Merickel <michael@merickel.org>2020-01-16 10:34:45 -0600
commit592cadd9c20ce410d9ab7b9a748ec59dff001f65 (patch)
tree2e4133bffc8363259afef49f8899402d17098246 /docs/tutorials/wiki2/authorization.rst
parenta7f61dc1ae95ffddacccfb583fa7a8f6d294f4b9 (diff)
downloadpyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.gz
pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.bz2
pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.zip
update docs with pyramid.authorizatio imports after syncing master
Diffstat (limited to 'docs/tutorials/wiki2/authorization.rst')
-rw-r--r--docs/tutorials/wiki2/authorization.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst
index 001bde935..38b9b7373 100644
--- a/docs/tutorials/wiki2/authorization.rst
+++ b/docs/tutorials/wiki2/authorization.rst
@@ -30,7 +30,7 @@ identifiers that are easier to generalize. The permissions are then written
against the principals without focusing on the exact user involved.
:app:`Pyramid` defines two builtin principals used in every application:
-:attr:`pyramid.security.Everyone` and :attr:`pyramid.security.Authenticated`.
+:attr:`pyramid.authorization.Everyone` and :attr:`pyramid.authorization.Authenticated`.
On top of these we have already mentioned the required principals for this
application in the original design. The user has two possible roles: ``editor``
or ``basic``. These will be prefixed by the string ``role:`` to avoid clashing
@@ -40,7 +40,7 @@ Open the file ``tutorial/security.py`` and edit it as follows:
.. literalinclude:: src/authorization/tutorial/security.py
:linenos:
- :emphasize-lines: 2,5-8,17,42-53
+ :emphasize-lines: 2-6,17,42-53
:language: python
Only the highlighted lines need to be added.