[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/security/interfaces.py
Merged from trunk
Jim Fulton
jim at zope.com
Tue Jul 27 10:58:39 EDT 2004
Log message for revision 26794:
Merged from trunk
r26793 | jim | 2004-07-27 10:53:35 -0400 (Tue, 27 Jul 2004) | 5 lines
Removed use of ZopeError as base for Forbidden and Unauthorized.
This was causing a circular import problem. I see no point in
ZopeError and plan to get rid of it.
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/security/interfaces.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/security/interfaces.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/security/interfaces.py 2004-07-27 14:53:35 UTC (rev 26793)
+++ Zope3/branches/ZopeX3-3.0/src/zope/security/interfaces.py 2004-07-27 14:58:39 UTC (rev 26794)
@@ -16,24 +16,22 @@
$Id$
"""
-from zope.exceptions import ZopeError
-from zope.exceptions import IZopeError
from zope.interface import Interface, Attribute, implements
from zope.interface.common.interfaces import IAttributeError
-class IUnauthorized(IZopeError):
+class IUnauthorized(Interface):
pass
-class Unauthorized(ZopeError):
+class Unauthorized(Exception):
"""Some user wasn't allowed to access a resource"""
implements(IUnauthorized)
-class IForbidden(IZopeError):
+class IForbidden(Interface):
pass
-class Forbidden(ZopeError):
+class Forbidden(Exception):
"""A resource cannot be accessed under any circumstances
"""
implements(IForbidden)
More information about the Zope3-Checkins
mailing list