diff options
Diffstat (limited to 'src/zope/security/interfaces.py')
-rw-r--r-- | src/zope/security/interfaces.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/zope/security/interfaces.py b/src/zope/security/interfaces.py index 1035b77..81addc2 100644 --- a/src/zope/security/interfaces.py +++ b/src/zope/security/interfaces.py @@ -19,6 +19,12 @@ from zope.interface.common.interfaces import IException, IAttributeError from zope.schema import Text, TextLine from zope.security.i18n import ZopeMessageFactory as _ +#: The name (id) of the registered :class:`IPermission` utility that signifies +#: that the protected attribute is public. +#: +#: .. versionadded:: 4.2.0 +PUBLIC_PERMISSION_NAME = 'zope.Public' + class IUnauthorized(IException): pass @@ -26,8 +32,6 @@ class IUnauthorized(IException): class Unauthorized(Exception): """Some user wasn't allowed to access a resource""" - - class IForbidden(IException): pass |