[Checkins] SVN: zope.security/trunk/src/zope/security/interfaces.py
Inherit IUnauthorized and IForbidden from IException instead
of just Interface
Dmitry Vasiliev
dima at hlabs.spb.ru
Mon Jun 25 01:06:02 EDT 2007
Log message for revision 77027:
Inherit IUnauthorized and IForbidden from IException instead of just Interface
Changed:
U zope.security/trunk/src/zope/security/interfaces.py
-=-
Modified: zope.security/trunk/src/zope/security/interfaces.py
===================================================================
--- zope.security/trunk/src/zope/security/interfaces.py 2007-06-25 02:37:28 UTC (rev 77026)
+++ zope.security/trunk/src/zope/security/interfaces.py 2007-06-25 05:06:01 UTC (rev 77027)
@@ -17,12 +17,12 @@
"""
from zope.interface import Interface, Attribute, implements
-from zope.interface.common.interfaces import IAttributeError
+from zope.interface.common.interfaces import IException, IAttributeError
from zope.schema import Text, TextLine
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('zope')
-class IUnauthorized(Interface):
+class IUnauthorized(IException):
pass
class Unauthorized(Exception):
@@ -31,7 +31,7 @@
implements(IUnauthorized)
-class IForbidden(Interface):
+class IForbidden(IException):
pass
class Forbidden(Exception):
More information about the Checkins
mailing list