Zope Subversion Repository

  Zope

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

Diff for /Zope3/trunk/src/zope/security/interfaces.py between version 9253 and 10409

version 9253, Thu Mar 13 16:28:17 2003 UTC version 10409, Thu Jun 5 11:45:03 2003 UTC
Line 13 
Line 13 
 ##############################################################################  ##############################################################################
 """Interfaces for security machinery.  """Interfaces for security machinery.
   
 $Id: interfaces.py,v 1.6 2003/03/13 16:28:14 alga Exp $  $Id: interfaces.py,v 1.7 2003/06/05 11:45:03 mgedmin Exp $
 """  """
   
 from zope.interface import Interface, Attribute  from zope.interface import Interface, Attribute
Line 150 
Line 150 
         """Return a security proxy for the value."""          """Return a security proxy for the value."""
   
   
   class INameBasedChecker(IChecker):
       """Security checker that uses permissions to check attribute access."""
   
       def permission_id(name):
           """Return the permission used to check attribute access on name.
   
           This permission is used by both check and check_getattr.
           """
   
       def setattr_permission_id(name):
           """Return the permission used to check attribute assignment on name.
   
           This permission is used by check_setattr.
           """
   
   
 class ISecurityPolicy(Interface):  class ISecurityPolicy(Interface):
   
     def checkPermission(permission, object, context):      def checkPermission(permission, object, context):


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

webmaster@zope.org

Powered by ViewCVS 1.0-dev
(Powered by Apache)

ViewCVS and CVS Help