From f229f02f7c96ba81f1827973458fd0c5843235f1 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 3 Oct 2018 20:35:22 -0500 Subject: remove deprecated security functions --- docs/designdefense.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/designdefense.rst') 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. -- cgit v1.2.3