[Zope-Checkins] SVN: Zope/trunk/src/AccessControl/ Fewer CVS fossils
Hanno Schlichting
hannosch at hannosch.eu
Sat Jun 5 18:39:18 EDT 2010
Log message for revision 113176:
Fewer CVS fossils
Changed:
U Zope/trunk/src/AccessControl/Owned.py
U Zope/trunk/src/AccessControl/Permission.py
U Zope/trunk/src/AccessControl/PermissionMapping.py
U Zope/trunk/src/AccessControl/PermissionRole.py
U Zope/trunk/src/AccessControl/Permissions.py
U Zope/trunk/src/AccessControl/Role.py
U Zope/trunk/src/AccessControl/SecurityManagement.py
U Zope/trunk/src/AccessControl/SecurityManager.py
U Zope/trunk/src/AccessControl/SimpleObjectPolicies.py
U Zope/trunk/src/AccessControl/SpecialUsers.py
U Zope/trunk/src/AccessControl/User.py
U Zope/trunk/src/AccessControl/ZopeSecurityPolicy.py
U Zope/trunk/src/AccessControl/cAccessControl.c
U Zope/trunk/src/AccessControl/class_init.py
U Zope/trunk/src/AccessControl/interfaces.py
U Zope/trunk/src/AccessControl/tests/testOwned.py
U Zope/trunk/src/AccessControl/tests/testPasswordDigest.py
U Zope/trunk/src/AccessControl/tests/testPermissionRole.py
U Zope/trunk/src/AccessControl/tests/testSecurityManager.py
U Zope/trunk/src/AccessControl/tests/testZCML.py
U Zope/trunk/src/AccessControl/tests/testZopeGuards.py
U Zope/trunk/src/AccessControl/tests/testZopeSecurityPolicy.py
U Zope/trunk/src/AccessControl/tests/test_safeiter.py
-=-
Modified: Zope/trunk/src/AccessControl/Owned.py
===================================================================
--- Zope/trunk/src/AccessControl/Owned.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/Owned.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Support for owned objects
-
-$Id$
"""
import urlparse
Modified: Zope/trunk/src/AccessControl/Permission.py
===================================================================
--- Zope/trunk/src/AccessControl/Permission.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/Permission.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Permissions
-
-$Id$
"""
import string
Modified: Zope/trunk/src/AccessControl/PermissionMapping.py
===================================================================
--- Zope/trunk/src/AccessControl/PermissionMapping.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/PermissionMapping.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -15,8 +15,6 @@
Sometimes, we need an object's permissions to be remapped to other permissions
when the object is used in specual ways. This is rather hard, since we
need the object's ordinary permissions intact so we can manage it.
-
-$Id$
"""
from cgi import escape
Modified: Zope/trunk/src/AccessControl/PermissionRole.py
===================================================================
--- Zope/trunk/src/AccessControl/PermissionRole.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/PermissionRole.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,9 +11,8 @@
#
##############################################################################
'''Objects that implement Permission-based roles.
+'''
-$Id$'''
-
# The following names are inserted by AccessControl.Implementation:
#
# rolesForPermissionOn, PermissionRole, imPermissionRole,
Modified: Zope/trunk/src/AccessControl/Permissions.py
===================================================================
--- Zope/trunk/src/AccessControl/Permissions.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/Permissions.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,10 +11,9 @@
#
##############################################################################
"""Constant definitions for built-in Zope permissions
+"""
-$Id$"""
-
access_contents_information='Access contents information'
add_database_methods='Add Database Methods'
add_documents_images_and_files='Add Documents, Images, and Files'
Modified: Zope/trunk/src/AccessControl/Role.py
===================================================================
--- Zope/trunk/src/AccessControl/Role.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/Role.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Access control support
-
-$Id$
"""
from cgi import escape
Modified: Zope/trunk/src/AccessControl/SecurityManagement.py
===================================================================
--- Zope/trunk/src/AccessControl/SecurityManagement.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/SecurityManagement.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Security management
-
-$Id$
"""
def getSecurityManager():
"""Get a security manager, for the current thread.
Modified: Zope/trunk/src/AccessControl/SecurityManager.py
===================================================================
--- Zope/trunk/src/AccessControl/SecurityManager.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/SecurityManager.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,10 +11,8 @@
#
##############################################################################
'''API module to set the security policy
+'''
-
-$Id$'''
-
from AccessControl import ImplPython as _ImplPython
from AccessControl.SimpleObjectPolicies import _noroles
Modified: Zope/trunk/src/AccessControl/SimpleObjectPolicies.py
===================================================================
--- Zope/trunk/src/AccessControl/SimpleObjectPolicies.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/SimpleObjectPolicies.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -41,9 +41,8 @@
XXX This descrition doesn't actually match what's done in ZopeGuards
or in ZopeSecurityPolicy. :(
+'''
-$Id$'''
-
_noroles = [] # this is imported in various places
import Record
Modified: Zope/trunk/src/AccessControl/SpecialUsers.py
===================================================================
--- Zope/trunk/src/AccessControl/SpecialUsers.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/SpecialUsers.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -15,9 +15,8 @@
This is needed to avoid a circular import problem. The 'real' values
are stored here by the AccessControl.User module as part of it's
initialization.
-
-$Id$
"""
+
nobody = None
system = None
emergency_user = None
Modified: Zope/trunk/src/AccessControl/User.py
===================================================================
--- Zope/trunk/src/AccessControl/User.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/User.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Access control package.
-
-$Id$
"""
import os
Modified: Zope/trunk/src/AccessControl/ZopeSecurityPolicy.py
===================================================================
--- Zope/trunk/src/AccessControl/ZopeSecurityPolicy.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/ZopeSecurityPolicy.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,9 +11,8 @@
#
##############################################################################
"""Define Zope's default security policy
+"""
-$Id$"""
-
from types import MethodType
# AccessControl.Implementation inserts:
Modified: Zope/trunk/src/AccessControl/cAccessControl.c
===================================================================
--- Zope/trunk/src/AccessControl/cAccessControl.c 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/cAccessControl.c 2010-06-05 22:39:18 UTC (rev 113176)
@@ -36,8 +36,6 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
- $Id$
-
If you have questions regarding this software,
contact:
@@ -2244,7 +2242,7 @@
module = Py_InitModule3("cAccessControl",
cAccessControl_methods,
- "$Id$\n");
+ "cAccessControl.c\n");
aq_init(); /* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */
Modified: Zope/trunk/src/AccessControl/class_init.py
===================================================================
--- Zope/trunk/src/AccessControl/class_init.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/class_init.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""Class initialization.
-
-$Id$
"""
import logging
Modified: Zope/trunk/src/AccessControl/interfaces.py
===================================================================
--- Zope/trunk/src/AccessControl/interfaces.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/interfaces.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -11,8 +11,6 @@
#
##############################################################################
"""AccessControl interfaces.
-
-$Id$
"""
from AccessControl.SimpleObjectPolicies import _noroles
Modified: Zope/trunk/src/AccessControl/tests/testOwned.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testOwned.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testOwned.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -1,6 +1,4 @@
"""Unit tests for AccessControl.Owned
-
-$Id$
"""
import unittest
Modified: Zope/trunk/src/AccessControl/tests/testPasswordDigest.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testPasswordDigest.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testPasswordDigest.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -13,13 +13,9 @@
"""Test of AuthEncoding
"""
-__rcs_id__='$Id$'
-__version__='$Revision: 1.5 $'[11:-2]
+import unittest
-import os, sys, unittest
-
from AccessControl import AuthEncoding
-import unittest
class PasswordDigestTests (unittest.TestCase):
Modified: Zope/trunk/src/AccessControl/tests/testPermissionRole.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testPermissionRole.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testPermissionRole.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -13,11 +13,8 @@
"""Tests of PermissionRole
"""
-__rcs_id__='$Id$'
-__version__='$Revision: 1.4 $'[11:-2]
+import unittest
-import os, sys, unittest
-
from AccessControl.PermissionRole import PermissionRole
from Acquisition import Implicit, Explicit, aq_base
Modified: Zope/trunk/src/AccessControl/tests/testSecurityManager.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testSecurityManager.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testSecurityManager.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -12,8 +12,6 @@
#
##############################################################################
"""Tests for the SecurityManager implementations
-
-$Id$
"""
import unittest
Modified: Zope/trunk/src/AccessControl/tests/testZCML.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testZCML.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testZCML.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -12,8 +12,6 @@
#
##############################################################################
"""Test security induced by ZCML
-
-$Id$
"""
from zope.interface import implements
Modified: Zope/trunk/src/AccessControl/tests/testZopeGuards.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testZopeGuards.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testZopeGuards.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -12,11 +12,8 @@
#
##############################################################################
"""Test Zope Guards
-
-Well, at least begin testing some of the functionality
-
-$Id$
"""
+
import doctest
import unittest
@@ -24,9 +21,7 @@
import operator
import sys
-import ZODB
-
if sys.version_info >= (2, 5):
from AccessControl.ZopeGuards import guarded_any, guarded_all
MIN_MAX_TAKE_KEY = True
Modified: Zope/trunk/src/AccessControl/tests/testZopeSecurityPolicy.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/testZopeSecurityPolicy.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/testZopeSecurityPolicy.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -13,21 +13,17 @@
"""Tests of ZopeSecurityPolicy
"""
-__rcs_id__='$Id$'
-__version__='$Revision: 1.10 $'[11:-2]
+import sys
+import unittest
-import os, sys, unittest
-
-import ZODB
try:
from zExceptions import Unauthorized
except ImportError:
Unauthorized = 'Unauthorized'
from AccessControl.User import UserFolder
from AccessControl.SecurityManagement import SecurityContext
-from Acquisition import Implicit, Explicit, aq_base
+from Acquisition import Implicit, Explicit
from MethodObject import Method
-from ComputedAttribute import ComputedAttribute
user_roles = ('RoleOfUser',)
@@ -582,9 +578,3 @@
suite.addTest(unittest.makeSuite(C_ZSPTests, 'test'))
suite.addTest(DocTestSuite())
return suite
-
-def main():
- unittest.TextTestRunner().run(test_suite())
-
-if __name__ == '__main__':
- main()
Modified: Zope/trunk/src/AccessControl/tests/test_safeiter.py
===================================================================
--- Zope/trunk/src/AccessControl/tests/test_safeiter.py 2010-06-05 22:33:49 UTC (rev 113175)
+++ Zope/trunk/src/AccessControl/tests/test_safeiter.py 2010-06-05 22:39:18 UTC (rev 113176)
@@ -12,8 +12,6 @@
#
##############################################################################
"""Tests for the guarded iterartor.
-
-$Id$
"""
import unittest
More information about the Zope-Checkins
mailing list