diff options
| author | Michael Merickel <michael@merickel.org> | 2018-10-03 20:35:22 -0500 |
|---|---|---|
| committer | Michael Merickel <michael@merickel.org> | 2018-11-01 10:05:47 -0500 |
| commit | f229f02f7c96ba81f1827973458fd0c5843235f1 (patch) | |
| tree | 5f489b644f1571aef94bb61e9baee0bab9407a74 /docs | |
| parent | 04eff2cc3ab71f0c38583647b047fff9447b7668 (diff) | |
| download | pyramid-f229f02f7c96ba81f1827973458fd0c5843235f1.tar.gz pyramid-f229f02f7c96ba81f1827973458fd0c5843235f1.tar.bz2 pyramid-f229f02f7c96ba81f1827973458fd0c5843235f1.zip | |
remove deprecated security functions
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/security.rst | 8 | ||||
| -rw-r--r-- | docs/designdefense.rst | 5 |
2 files changed, 2 insertions, 11 deletions
diff --git a/docs/api/security.rst b/docs/api/security.rst index 116459226..edb66472e 100644 --- a/docs/api/security.rst +++ b/docs/api/security.rst @@ -8,12 +8,6 @@ Authentication API Functions ---------------------------- -.. autofunction:: authenticated_userid - -.. autofunction:: unauthenticated_userid - -.. autofunction:: effective_principals - .. autofunction:: forget .. autofunction:: remember(request, userid, **kwargs) @@ -21,8 +15,6 @@ Authentication API Functions Authorization API Functions --------------------------- -.. autofunction:: has_permission - .. autofunction:: principals_allowed_by_permission .. autofunction:: view_execution_permitted diff --git a/docs/designdefense.rst b/docs/designdefense.rst index 0f452ffde..566ad1f5e 100644 --- a/docs/designdefense.rst +++ b/docs/designdefense.rst @@ -181,15 +181,14 @@ developer needs to understand a ZCA concept or API during the creation of a Instead the framework hides the presence of the ZCA registry behind special-purpose API functions that *do* use ZCA APIs. Take for example the -``pyramid.security.authenticated_userid`` function, which returns the userid +``request.authenticated_userid`` function, which returns the userid present in the current request or ``None`` if no userid is present in the current request. The application developer calls it like so: .. code-block:: python :linenos: - from pyramid.security import authenticated_userid - userid = authenticated_userid(request) + userid = request.authenticated_userid They now have the current user id. |
