summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki/authorization.rst
diff options
context:
space:
mode:
authorSteve Piercy <web@stevepiercy.com>2019-12-28 00:36:56 -0800
committerSteve Piercy <web@stevepiercy.com>2020-01-02 23:30:59 -0800
commita5f0644e08cea5b896135c7441d63d9ee7ed1c30 (patch)
treea8c6e445fbaa891288193afc213d79b78bd1d5f7 /docs/tutorials/wiki/authorization.rst
parent57fe1b6cb76717404ccc1777f2f3a4e6bf6b37a4 (diff)
downloadpyramid-a5f0644e08cea5b896135c7441d63d9ee7ed1c30.tar.gz
pyramid-a5f0644e08cea5b896135c7441d63d9ee7ed1c30.tar.bz2
pyramid-a5f0644e08cea5b896135c7441d63d9ee7ed1c30.zip
Update docs/tutorials/wiki/authorization.rst and related src files
Diffstat (limited to 'docs/tutorials/wiki/authorization.rst')
-rw-r--r--docs/tutorials/wiki/authorization.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorials/wiki/authorization.rst b/docs/tutorials/wiki/authorization.rst
index ef914cab5..2ff9deb31 100644
--- a/docs/tutorials/wiki/authorization.rst
+++ b/docs/tutorials/wiki/authorization.rst
@@ -99,7 +99,7 @@ Here we use "dummy" data to represent user and groups sources.
Add an ACL
~~~~~~~~~~
-Open ``tutorial/models.py`` and add the following import statement near the top:
+Open ``tutorial/models/__init__.py`` and add the following import statement near the top:
.. literalinclude:: src/authorization/tutorial/models/__init__.py
:lines: 4-8
@@ -179,7 +179,7 @@ Open ``tutorial/views/default.py`` and add a ``permission='edit'`` parameter to
:language: python
.. literalinclude:: src/authorization/tutorial/views/default.py
- :lines: 68-70
+ :lines: 69-71
:emphasize-lines: 2-3
:language: python
@@ -191,12 +191,12 @@ Add a ``permission='view'`` parameter to the ``@view_config`` decorator for
``view_wiki()`` and ``view_page()`` as follows:
.. literalinclude:: src/authorization/tutorial/views/default.py
- :lines: 23-24
+ :lines: 21-22
:emphasize-lines: 1-2
:language: python
.. literalinclude:: src/authorization/tutorial/views/default.py
- :lines: 28-29
+ :lines: 27-28
:emphasize-lines: 1-2
:language: python
@@ -318,7 +318,7 @@ Our ``tutorial/__init__.py`` will look like this when we are done:
Only the highlighted lines need to be added or edited.
-Our ``tutorial/models.py`` will look like this when we are done:
+Our ``tutorial/models/__init__.py`` will look like this when we are done:
.. literalinclude:: src/authorization/tutorial/models/__init__.py
:linenos: