diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2013-01-05 19:28:09 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2013-01-05 19:28:09 +0200 |
| commit | 064080f2496ef09eb79a0c370eb0db9dfd5c459c (patch) | |
| tree | 6bf62577bdfed732268620c5da76385ca8e6911a /docs | |
| parent | 2b164460337dd655f9aebb25a10e6f0f35363656 (diff) | |
| download | pyramid-064080f2496ef09eb79a0c370eb0db9dfd5c459c.tar.gz pyramid-064080f2496ef09eb79a0c370eb0db9dfd5c459c.tar.bz2 pyramid-064080f2496ef09eb79a0c370eb0db9dfd5c459c.zip | |
sentence too long; also fix grammar, and add markup
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/tutorials/wiki2/authorization.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorials/wiki2/authorization.rst b/docs/tutorials/wiki2/authorization.rst index d98fb87e4..933c37f94 100644 --- a/docs/tutorials/wiki2/authorization.rst +++ b/docs/tutorials/wiki2/authorization.rst @@ -62,7 +62,7 @@ returns one of these values: - If the userid *does not* exist in the system, it will return ``None``. -For example, ``groupfinder('editor', request )`` returns ['group:editor'], +For example, ``groupfinder('editor', request )`` returns ``['group:editor']``, ``groupfinder('viewer', request)`` returns [], and ``groupfinder('admin', request)`` returns ``None``. We will use ``groupfinder()`` as an :term:`authentication policy` "callback" that will provide the :term:`principal` or principals @@ -151,10 +151,10 @@ Now add those policies to the configuration: (Only the highlighted lines need to be added.) -We are enabling an ``AuthTktAuthenticationPolicy``, it is based in an -auth ticket that may be included in the request, and an -``ACLAuthorizationPolicy`` that uses an ACL to determine the allow or deny -outcome for a view. +We are enabling an ``AuthTktAuthenticationPolicy``, which is based in an +auth ticket that may be included in the request. +We are also enabling an ``ACLAuthorizationPolicy``, which uses an ACL to +determine the *allow* or *deny* outcome for a view. Note that the :class:`pyramid.authentication.AuthTktAuthenticationPolicy` constructor accepts two arguments: ``secret`` and ``callback``. ``secret`` is |
