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

Fewer CVS fossils

parent c022bbec
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Support for owned objects
$Id$
"""
import urlparse
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Permissions
$Id$
"""
import string
......
......@@ -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
......
......@@ -11,8 +11,7 @@
#
##############################################################################
'''Objects that implement Permission-based roles.
$Id$'''
'''
# The following names are inserted by AccessControl.Implementation:
#
......
......@@ -11,8 +11,7 @@
#
##############################################################################
"""Constant definitions for built-in Zope permissions
$Id$"""
"""
access_contents_information='Access contents information'
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Access control support
$Id$
"""
from cgi import escape
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Security management
$Id$
"""
def getSecurityManager():
"""Get a security manager, for the current thread.
......
......@@ -11,9 +11,7 @@
#
##############################################################################
'''API module to set the security policy
$Id$'''
'''
from AccessControl import ImplPython as _ImplPython
from AccessControl.SimpleObjectPolicies import _noroles
......
......@@ -41,8 +41,7 @@ disallowed otherwise.
XXX This descrition doesn't actually match what's done in ZopeGuards
or in ZopeSecurityPolicy. :(
$Id$'''
'''
_noroles = [] # this is imported in various places
......
......@@ -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
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Access control package.
$Id$
"""
import os
......
......@@ -11,8 +11,7 @@
#
##############################################################################
"""Define Zope's default security policy
$Id$"""
"""
from types import MethodType
......
......@@ -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 @@ void initcAccessControl(void) {
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(). */
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""Class initialization.
$Id$
"""
import logging
......
......@@ -11,8 +11,6 @@
#
##############################################################################
"""AccessControl interfaces.
$Id$
"""
from AccessControl.SimpleObjectPolicies import _noroles
......
"""Unit tests for AccessControl.Owned
$Id$
"""
import unittest
......
......@@ -13,13 +13,9 @@
"""Test of AuthEncoding
"""
__rcs_id__='$Id$'
__version__='$Revision: 1.5 $'[11:-2]
import os, sys, unittest
import unittest
from AccessControl import AuthEncoding
import unittest
class PasswordDigestTests (unittest.TestCase):
......
......@@ -13,10 +13,7 @@
"""Tests of PermissionRole
"""
__rcs_id__='$Id$'
__version__='$Revision: 1.4 $'[11:-2]
import os, sys, unittest
import unittest
from AccessControl.PermissionRole import PermissionRole
from Acquisition import Implicit, Explicit, aq_base
......
......@@ -12,8 +12,6 @@
#
##############################################################################
"""Tests for the SecurityManager implementations
$Id$
"""
import unittest
......
......@@ -12,8 +12,6 @@
#
##############################################################################
"""Test security induced by ZCML
$Id$
"""
from zope.interface import implements
......
......@@ -12,11 +12,8 @@
#
##############################################################################
"""Test Zope Guards
Well, at least begin testing some of the functionality
$Id$
"""
import doctest
import unittest
......@@ -24,8 +21,6 @@ import os
import operator
import sys
import ZODB
if sys.version_info >= (2, 5):
from AccessControl.ZopeGuards import guarded_any, guarded_all
......
......@@ -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 @@ def test_suite():
suite.addTest(unittest.makeSuite(C_ZSPTests, 'test'))
suite.addTest(DocTestSuite())
return suite
def main():
unittest.TextTestRunner().run(test_suite())
if __name__ == '__main__':
main()
......@@ -12,8 +12,6 @@
#
##############################################################################
"""Tests for the guarded iterartor.
$Id$
"""
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