diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-30 18:00:41 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-30 18:00:41 +0000 |
| commit | e08b8e871ff8e48a738a5ac3a5647b7af544576d (patch) | |
| tree | 184940b81fdf3b700db5b53924522c1b304d8c4c | |
| parent | d2fb1632eaa28a0baf20dde974bbffe04a024dd1 (diff) | |
| download | pyramid-e08b8e871ff8e48a738a5ac3a5647b7af544576d.tar.gz pyramid-e08b8e871ff8e48a738a5ac3a5647b7af544576d.tar.bz2 pyramid-e08b8e871ff8e48a738a5ac3a5647b7af544576d.zip | |
Get rid of misleading comment.
| -rw-r--r-- | docs/narr/security.rst | 2 | ||||
| -rw-r--r-- | repoze/bfg/interfaces.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/narr/security.rst b/docs/narr/security.rst index a733aef9b..10e33eb28 100644 --- a/docs/narr/security.rst +++ b/docs/narr/security.rst @@ -623,7 +623,7 @@ that implements the following interface: .. code-block:: python class IAuthorizationPolicy(object): - """ A adapter on context """ + """ An object representing a BFG authorization policy. """ def permits(self, context, principals, permission): """ Return True if any of the principals is allowed the permission in the current context, else return False """ diff --git a/repoze/bfg/interfaces.py b/repoze/bfg/interfaces.py index 5ce6c3461..5b8ccf08b 100644 --- a/repoze/bfg/interfaces.py +++ b/repoze/bfg/interfaces.py @@ -209,7 +209,7 @@ class IAuthenticationPolicy(Interface): current user on subsequent requests. """ class IAuthorizationPolicy(Interface): - """ A adapter on context """ + """ An object representing a BFG authorization policy. """ def permits(context, principals, permission): """ Return True if any of the principals is allowed the permission in the current context, else return False """ |
