Zope Subversion Repository

  Zope

Zope: Zope3/trunk/src/zope/security/interfaces.py

Diff for /Zope3/trunk/src/zope/security/interfaces.py between version 26787 and 26793

version 26787, Tue Jul 27 14:00:42 2004 UTC version 26793, Tue Jul 27 14:53:35 2004 UTC
Line 16 
Line 16 
 $Id$  $Id$
 """  """
   
 from zope.exceptions import ZopeError  
 from zope.exceptions import IZopeError  
 from zope.interface import Interface, Attribute, implements  from zope.interface import Interface, Attribute, implements
 from zope.interface.common.interfaces import IAttributeError  from zope.interface.common.interfaces import IAttributeError
   
 class IUnauthorized(IZopeError):  class IUnauthorized(Interface):
     pass      pass
   
 class Unauthorized(ZopeError):  class Unauthorized(Exception):
     """Some user wasn't allowed to access a resource"""      """Some user wasn't allowed to access a resource"""
   
     implements(IUnauthorized)      implements(IUnauthorized)
   
   
 class IForbidden(IZopeError):  class IForbidden(Interface):
     pass      pass
   
 class Forbidden(ZopeError):  class Forbidden(Exception):
     """A resource cannot be accessed under any circumstances      """A resource cannot be accessed under any circumstances
     """      """
     implements(IForbidden)      implements(IForbidden)


Generate output suitable for use with a patch program
Legend:
Removed from v.26787  
changed lines
  Added in v.26793

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help