[Zope3-checkins] CVS: Zope3/src/zope/security - interfaces.py:1.1.2.2

Guido van Rossum guido@python.org
Mon, 23 Dec 2002 15:14:48 -0500


Update of /cvs-repository/Zope3/src/zope/security
In directory cvs.zope.org:/tmp/cvs-serv32169

Modified Files:
      Tag: NameGeddon-branch
	interfaces.py 
Log Message:
Cleanup.


=== Zope3/src/zope/security/interfaces.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/security/interfaces.py:1.1.2.1	Mon Dec 23 14:33:15 2002
+++ Zope3/src/zope/security/interfaces.py	Mon Dec 23 15:14:47 2002
@@ -1,17 +1,24 @@
 ##############################################################################
 #
-# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
+# Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
+"""Interfaces for security machinery.
+
+$Id$
+"""
+
 from zope.interface import Interface
+from zope.interface import Attribute
+
 
 class ISecurityManagementSetup( Interface ):
     """
@@ -35,6 +42,7 @@
             Clear any existing SecurityManager.
         """
 
+
 class ISecurityManagement( Interface ):
     """
         "Public" SM API.
@@ -53,13 +61,6 @@
         """
 
 
-"""
-
-$Id$
-"""
-
-from zope.interface import Interface
-
 class ISecurityProxyFactory(Interface):
 
     def __call__(object, checker=None):
@@ -73,10 +74,7 @@
         """
 
 
-
-from zope.interface import Interface
-
-# XXX This interface has too muct Zope application dependence. This
+# XXX This interface has too much Zope application dependence. This
 # needs to be refactored somehow.
 
 class ISecurityManager( Interface ):
@@ -131,13 +129,6 @@
         """
 
 
-"""
-
-$Id$
-"""
-
-from zope.interface import Interface
-
 class IChecker(Interface):
     """Security-proxy plugin objects that implement low-level checks
 
@@ -175,8 +166,6 @@
         """
 
 
-from zope.interface import Interface
-
 class ISecurityPolicy( Interface ):
 
     def checkPermission( permission
@@ -198,9 +187,6 @@
         """
 
 
-from zope.interface import Interface
-from zope.interface.element import Attribute
-
 class ISecurityContext( Interface ):
     """
         Capture transient request-specific security information.
@@ -214,4 +200,3 @@
     Attribute( 'user'
              , 'The AUTHENTICATED_USER for the request.'
              )
-