From e08b8e871ff8e48a738a5ac3a5647b7af544576d Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 30 Nov 2009 18:00:41 +0000 Subject: Get rid of misleading comment. --- docs/narr/security.rst | 2 +- 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 """ -- cgit v1.2.3