Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
5ed89f43
Commit
5ed89f43
authored
Jun 05, 2010
by
Hanno Schlichting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fewer CVS fossils
parent
c022bbec
Changes
23
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
13 additions
and
68 deletions
+13
-68
src/AccessControl/Owned.py
src/AccessControl/Owned.py
+0
-2
src/AccessControl/Permission.py
src/AccessControl/Permission.py
+0
-2
src/AccessControl/PermissionMapping.py
src/AccessControl/PermissionMapping.py
+0
-2
src/AccessControl/PermissionRole.py
src/AccessControl/PermissionRole.py
+1
-2
src/AccessControl/Permissions.py
src/AccessControl/Permissions.py
+1
-2
src/AccessControl/Role.py
src/AccessControl/Role.py
+0
-2
src/AccessControl/SecurityManagement.py
src/AccessControl/SecurityManagement.py
+0
-2
src/AccessControl/SecurityManager.py
src/AccessControl/SecurityManager.py
+1
-3
src/AccessControl/SimpleObjectPolicies.py
src/AccessControl/SimpleObjectPolicies.py
+1
-2
src/AccessControl/SpecialUsers.py
src/AccessControl/SpecialUsers.py
+1
-2
src/AccessControl/User.py
src/AccessControl/User.py
+0
-2
src/AccessControl/ZopeSecurityPolicy.py
src/AccessControl/ZopeSecurityPolicy.py
+1
-2
src/AccessControl/cAccessControl.c
src/AccessControl/cAccessControl.c
+1
-3
src/AccessControl/class_init.py
src/AccessControl/class_init.py
+0
-2
src/AccessControl/interfaces.py
src/AccessControl/interfaces.py
+0
-2
src/AccessControl/tests/testOwned.py
src/AccessControl/tests/testOwned.py
+0
-2
src/AccessControl/tests/testPasswordDigest.py
src/AccessControl/tests/testPasswordDigest.py
+1
-5
src/AccessControl/tests/testPermissionRole.py
src/AccessControl/tests/testPermissionRole.py
+1
-4
src/AccessControl/tests/testSecurityManager.py
src/AccessControl/tests/testSecurityManager.py
+0
-2
src/AccessControl/tests/testZCML.py
src/AccessControl/tests/testZCML.py
+0
-2
src/AccessControl/tests/testZopeGuards.py
src/AccessControl/tests/testZopeGuards.py
+1
-6
src/AccessControl/tests/testZopeSecurityPolicy.py
src/AccessControl/tests/testZopeSecurityPolicy.py
+3
-13
src/AccessControl/tests/test_safeiter.py
src/AccessControl/tests/test_safeiter.py
+0
-2
No files found.
src/AccessControl/Owned.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""Support for owned objects
"""Support for owned objects
$Id$
"""
"""
import
urlparse
import
urlparse
...
...
src/AccessControl/Permission.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""Permissions
"""Permissions
$Id$
"""
"""
import
string
import
string
...
...
src/AccessControl/PermissionMapping.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/PermissionRole.py
View file @
5ed89f43
...
@@ -11,9 +11,8 @@
...
@@ -11,9 +11,8 @@
#
#
##############################################################################
##############################################################################
'''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:
#
#
# rolesForPermissionOn, PermissionRole, imPermissionRole,
# rolesForPermissionOn, PermissionRole, imPermissionRole,
...
...
src/AccessControl/Permissions.py
View file @
5ed89f43
...
@@ -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'
...
...
src/AccessControl/Role.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""Access control support
"""Access control support
$Id$
"""
"""
from
cgi
import
escape
from
cgi
import
escape
...
...
src/AccessControl/SecurityManagement.py
View file @
5ed89f43
...
@@ -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.
...
...
src/AccessControl/SecurityManager.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/SimpleObjectPolicies.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/SpecialUsers.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/User.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""Access control package.
"""Access control package.
$Id$
"""
"""
import
os
import
os
...
...
src/AccessControl/ZopeSecurityPolicy.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/cAccessControl.c
View file @
5ed89f43
...
@@ -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(). */
...
...
src/AccessControl/class_init.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""Class initialization.
"""Class initialization.
$Id$
"""
"""
import
logging
import
logging
...
...
src/AccessControl/interfaces.py
View file @
5ed89f43
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
#
#
##############################################################################
##############################################################################
"""AccessControl interfaces.
"""AccessControl interfaces.
$Id$
"""
"""
from
AccessControl.SimpleObjectPolicies
import
_noroles
from
AccessControl.SimpleObjectPolicies
import
_noroles
...
...
src/AccessControl/tests/testOwned.py
View file @
5ed89f43
"""Unit tests for AccessControl.Owned
"""Unit tests for AccessControl.Owned
$Id$
"""
"""
import
unittest
import
unittest
...
...
src/AccessControl/tests/testPasswordDigest.py
View file @
5ed89f43
...
@@ -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
):
...
...
src/AccessControl/tests/testPermissionRole.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/tests/testSecurityManager.py
View file @
5ed89f43
...
@@ -12,8 +12,6 @@
...
@@ -12,8 +12,6 @@
#
#
##############################################################################
##############################################################################
"""Tests for the SecurityManager implementations
"""Tests for the SecurityManager implementations
$Id$
"""
"""
import
unittest
import
unittest
...
...
src/AccessControl/tests/testZCML.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/tests/testZopeGuards.py
View file @
5ed89f43
...
@@ -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
...
...
src/AccessControl/tests/testZopeSecurityPolicy.py
View file @
5ed89f43
...
@@ -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
()
src/AccessControl/tests/test_safeiter.py
View file @
5ed89f43
...
@@ -12,8 +12,6 @@
...
@@ -12,8 +12,6 @@
#
#
##############################################################################
##############################################################################
"""Tests for the guarded iterartor.
"""Tests for the guarded iterartor.
$Id$
"""
"""
import
unittest
import
unittest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment