Commit 5ed89f43 authored by Hanno Schlichting's avatar Hanno Schlichting

Fewer CVS fossils

parent c022bbec
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Support for owned objects """Support for owned objects
$Id$
""" """
import urlparse import urlparse
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Permissions """Permissions
$Id$
""" """
import string import string
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
Sometimes, we need an object's permissions to be remapped to other permissions 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 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. need the object's ordinary permissions intact so we can manage it.
$Id$
""" """
from cgi import escape from cgi import escape
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
# #
############################################################################## ##############################################################################
'''Objects that implement Permission-based roles. '''Objects that implement Permission-based roles.
'''
$Id$'''
# The following names are inserted by AccessControl.Implementation: # The following names are inserted by AccessControl.Implementation:
# #
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
# #
############################################################################## ##############################################################################
"""Constant definitions for built-in Zope permissions """Constant definitions for built-in Zope permissions
"""
$Id$"""
access_contents_information='Access contents information' access_contents_information='Access contents information'
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Access control support """Access control support
$Id$
""" """
from cgi import escape from cgi import escape
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Security management """Security management
$Id$
""" """
def getSecurityManager(): def getSecurityManager():
"""Get a security manager, for the current thread. """Get a security manager, for the current thread.
......
...@@ -11,9 +11,7 @@ ...@@ -11,9 +11,7 @@
# #
############################################################################## ##############################################################################
'''API module to set the security policy '''API module to set the security policy
'''
$Id$'''
from AccessControl import ImplPython as _ImplPython from AccessControl import ImplPython as _ImplPython
from AccessControl.SimpleObjectPolicies import _noroles from AccessControl.SimpleObjectPolicies import _noroles
......
...@@ -41,8 +41,7 @@ disallowed otherwise. ...@@ -41,8 +41,7 @@ disallowed otherwise.
XXX This descrition doesn't actually match what's done in ZopeGuards XXX This descrition doesn't actually match what's done in ZopeGuards
or in ZopeSecurityPolicy. :( or in ZopeSecurityPolicy. :(
'''
$Id$'''
_noroles = [] # this is imported in various places _noroles = [] # this is imported in various places
......
...@@ -15,9 +15,8 @@ ...@@ -15,9 +15,8 @@
This is needed to avoid a circular import problem. The 'real' values 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 are stored here by the AccessControl.User module as part of it's
initialization. initialization.
$Id$
""" """
nobody = None nobody = None
system = None system = None
emergency_user = None emergency_user = None
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Access control package. """Access control package.
$Id$
""" """
import os import os
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
# #
############################################################################## ##############################################################################
"""Define Zope's default security policy """Define Zope's default security policy
"""
$Id$"""
from types import MethodType from types import MethodType
......
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE. DAMAGE.
$Id$
If you have questions regarding this software, If you have questions regarding this software,
contact: contact:
...@@ -2244,7 +2242,7 @@ void initcAccessControl(void) { ...@@ -2244,7 +2242,7 @@ void initcAccessControl(void) {
module = Py_InitModule3("cAccessControl", module = Py_InitModule3("cAccessControl",
cAccessControl_methods, cAccessControl_methods,
"$Id$\n"); "cAccessControl.c\n");
aq_init(); /* For Python <= 2.1.1, aq_init() should be after aq_init(); /* For Python <= 2.1.1, aq_init() should be after
Py_InitModule(). */ Py_InitModule(). */
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""Class initialization. """Class initialization.
$Id$
""" """
import logging import logging
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
# #
############################################################################## ##############################################################################
"""AccessControl interfaces. """AccessControl interfaces.
$Id$
""" """
from AccessControl.SimpleObjectPolicies import _noroles from AccessControl.SimpleObjectPolicies import _noroles
......
"""Unit tests for AccessControl.Owned """Unit tests for AccessControl.Owned
$Id$
""" """
import unittest import unittest
......
...@@ -13,13 +13,9 @@ ...@@ -13,13 +13,9 @@
"""Test of AuthEncoding """Test of AuthEncoding
""" """
__rcs_id__='$Id$' import unittest
__version__='$Revision: 1.5 $'[11:-2]
import os, sys, unittest
from AccessControl import AuthEncoding from AccessControl import AuthEncoding
import unittest
class PasswordDigestTests (unittest.TestCase): class PasswordDigestTests (unittest.TestCase):
......
...@@ -13,10 +13,7 @@ ...@@ -13,10 +13,7 @@
"""Tests of PermissionRole """Tests of PermissionRole
""" """
__rcs_id__='$Id$' import unittest
__version__='$Revision: 1.4 $'[11:-2]
import os, sys, unittest
from AccessControl.PermissionRole import PermissionRole from AccessControl.PermissionRole import PermissionRole
from Acquisition import Implicit, Explicit, aq_base from Acquisition import Implicit, Explicit, aq_base
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
# #
############################################################################## ##############################################################################
"""Tests for the SecurityManager implementations """Tests for the SecurityManager implementations
$Id$
""" """
import unittest import unittest
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
# #
############################################################################## ##############################################################################
"""Test security induced by ZCML """Test security induced by ZCML
$Id$
""" """
from zope.interface import implements from zope.interface import implements
......
...@@ -12,11 +12,8 @@ ...@@ -12,11 +12,8 @@
# #
############################################################################## ##############################################################################
"""Test Zope Guards """Test Zope Guards
Well, at least begin testing some of the functionality
$Id$
""" """
import doctest import doctest
import unittest import unittest
...@@ -24,8 +21,6 @@ import os ...@@ -24,8 +21,6 @@ import os
import operator import operator
import sys import sys
import ZODB
if sys.version_info >= (2, 5): if sys.version_info >= (2, 5):
from AccessControl.ZopeGuards import guarded_any, guarded_all from AccessControl.ZopeGuards import guarded_any, guarded_all
......
...@@ -13,21 +13,17 @@ ...@@ -13,21 +13,17 @@
"""Tests of ZopeSecurityPolicy """Tests of ZopeSecurityPolicy
""" """
__rcs_id__='$Id$' import sys
__version__='$Revision: 1.10 $'[11:-2] import unittest
import os, sys, unittest
import ZODB
try: try:
from zExceptions import Unauthorized from zExceptions import Unauthorized
except ImportError: except ImportError:
Unauthorized = 'Unauthorized' Unauthorized = 'Unauthorized'
from AccessControl.User import UserFolder from AccessControl.User import UserFolder
from AccessControl.SecurityManagement import SecurityContext from AccessControl.SecurityManagement import SecurityContext
from Acquisition import Implicit, Explicit, aq_base from Acquisition import Implicit, Explicit
from MethodObject import Method from MethodObject import Method
from ComputedAttribute import ComputedAttribute
user_roles = ('RoleOfUser',) user_roles = ('RoleOfUser',)
...@@ -582,9 +578,3 @@ def test_suite(): ...@@ -582,9 +578,3 @@ def test_suite():
suite.addTest(unittest.makeSuite(C_ZSPTests, 'test')) suite.addTest(unittest.makeSuite(C_ZSPTests, 'test'))
suite.addTest(DocTestSuite()) suite.addTest(DocTestSuite())
return suite return suite
def main():
unittest.TextTestRunner().run(test_suite())
if __name__ == '__main__':
main()
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
# #
############################################################################## ##############################################################################
"""Tests for the guarded iterartor. """Tests for the guarded iterartor.
$Id$
""" """
import unittest import unittest
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment