diff options
| author | Michael Merickel <michael@merickel.org> | 2020-01-16 10:34:45 -0600 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2020-01-16 10:34:45 -0600 |
| commit | 592cadd9c20ce410d9ab7b9a748ec59dff001f65 (patch) | |
| tree | 2e4133bffc8363259afef49f8899402d17098246 /docs/tutorials/wiki/src/authorization | |
| parent | a7f61dc1ae95ffddacccfb583fa7a8f6d294f4b9 (diff) | |
| download | pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.gz pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.tar.bz2 pyramid-592cadd9c20ce410d9ab7b9a748ec59dff001f65.zip | |
update docs with pyramid.authorizatio imports after syncing master
Diffstat (limited to 'docs/tutorials/wiki/src/authorization')
| -rw-r--r-- | docs/tutorials/wiki/src/authorization/tutorial/models/__init__.py | 4 | ||||
| -rw-r--r-- | docs/tutorials/wiki/src/authorization/tutorial/security.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/tutorials/wiki/src/authorization/tutorial/models/__init__.py b/docs/tutorials/wiki/src/authorization/tutorial/models/__init__.py index 64ae4bf5c..580ea41c5 100644 --- a/docs/tutorials/wiki/src/authorization/tutorial/models/__init__.py +++ b/docs/tutorials/wiki/src/authorization/tutorial/models/__init__.py @@ -1,11 +1,11 @@ from persistent import Persistent from persistent.mapping import PersistentMapping - -from pyramid.security import ( +from pyramid.authorization import ( Allow, Everyone, ) + class Wiki(PersistentMapping): __name__ = None __parent__ = None diff --git a/docs/tutorials/wiki/src/authorization/tutorial/security.py b/docs/tutorials/wiki/src/authorization/tutorial/security.py index 9f51aa54c..f4445578e 100644 --- a/docs/tutorials/wiki/src/authorization/tutorial/security.py +++ b/docs/tutorials/wiki/src/authorization/tutorial/security.py @@ -1,7 +1,7 @@ import bcrypt from pyramid.authentication import AuthTktCookieHelper -from pyramid.authorization import ACLHelper -from pyramid.security import ( +from pyramid.authorization import ( + ACLHelper, Authenticated, Everyone, ) |
