[Zope3-checkins] SVN: Zope3/trunk/src/zope/security/interfaces.py Removed use of ZopeError as base for Forbidden and Unauthorized.

Jim Fulton jim at zope.com
Tue Jul 27 10:53:35 EDT 2004


Log message for revision 26793:
  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/trunk/src/zope/security/interfaces.py


-=-
Modified: Zope3/trunk/src/zope/security/interfaces.py
===================================================================
--- Zope3/trunk/src/zope/security/interfaces.py	2004-07-27 14:33:50 UTC (rev 26792)
+++ Zope3/trunk/src/zope/security/interfaces.py	2004-07-27 14:53:35 UTC (rev 26793)
@@ -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