AccessControl 7.4__cp313-cp313-win_arm64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- AccessControl/AuthEncoding.py +48 -0
- AccessControl/ImplC.py +39 -0
- AccessControl/ImplPython.py +914 -0
- AccessControl/Implementation.py +111 -0
- AccessControl/Owned.py +30 -0
- AccessControl/Permission.py +179 -0
- AccessControl/PermissionMapping.py +165 -0
- AccessControl/PermissionRole.py +19 -0
- AccessControl/Permissions.py +65 -0
- AccessControl/Role.py +34 -0
- AccessControl/SecurityInfo.py +390 -0
- AccessControl/SecurityManagement.py +84 -0
- AccessControl/SecurityManager.py +30 -0
- AccessControl/SimpleObjectPolicies.py +145 -0
- AccessControl/SpecialUsers.py +25 -0
- AccessControl/User.py +54 -0
- AccessControl/ZopeGuards.py +712 -0
- AccessControl/ZopeSecurityPolicy.py +61 -0
- AccessControl/__init__.py +54 -0
- AccessControl/_compat.h +18 -0
- AccessControl/cAccessControl.c +2526 -0
- AccessControl/cAccessControl.cp313-win_arm64.pyd +0 -0
- AccessControl/class_init.py +94 -0
- AccessControl/configure.zcml +5 -0
- AccessControl/interfaces.py +390 -0
- AccessControl/logger_wrapper.py +8 -0
- AccessControl/meta.zcml +52 -0
- AccessControl/metaconfigure.py +61 -0
- AccessControl/owner.py +288 -0
- AccessControl/permissions.zcml +100 -0
- AccessControl/requestmethod.py +96 -0
- AccessControl/rolemanager.py +490 -0
- AccessControl/safe_formatter.py +86 -0
- AccessControl/security.py +203 -0
- AccessControl/tainted.py +195 -0
- AccessControl/tests/__init__.py +0 -0
- AccessControl/tests/actual_python.py +260 -0
- AccessControl/tests/mixed_module/__init__.py +9 -0
- AccessControl/tests/mixed_module/submodule/__init__.py +5 -0
- AccessControl/tests/private_module/__init__.py +5 -0
- AccessControl/tests/private_module/submodule/__init__.py +5 -0
- AccessControl/tests/public_module/__init__.py +7 -0
- AccessControl/tests/public_module/submodule/__init__.py +5 -0
- AccessControl/tests/testClassSecurityInfo.py +192 -0
- AccessControl/tests/testImplementation.py +65 -0
- AccessControl/tests/testModuleSecurity.py +113 -0
- AccessControl/tests/testPermissionMapping.py +12 -0
- AccessControl/tests/testPermissionRole.py +170 -0
- AccessControl/tests/testSecurityManager.py +264 -0
- AccessControl/tests/testZCML.py +489 -0
- AccessControl/tests/testZopeGuards.py +1086 -0
- AccessControl/tests/testZopeSecurityPolicy.py +799 -0
- AccessControl/tests/test_owner.py +289 -0
- AccessControl/tests/test_requestmethod.py +138 -0
- AccessControl/tests/test_rolemanager.py +137 -0
- AccessControl/tests/test_safe_formatter.py +226 -0
- AccessControl/tests/test_safeiter.py +59 -0
- AccessControl/tests/test_tainted.py +320 -0
- AccessControl/tests/test_userfolder.py +198 -0
- AccessControl/tests/test_users.py +666 -0
- AccessControl/unauthorized.py +38 -0
- AccessControl/userfolder.py +432 -0
- AccessControl/users.py +502 -0
- accesscontrol-7.4.dist-info/METADATA +431 -0
- accesscontrol-7.4.dist-info/RECORD +69 -0
- accesscontrol-7.4.dist-info/WHEEL +5 -0
- accesscontrol-7.4.dist-info/entry_points.txt +2 -0
- accesscontrol-7.4.dist-info/licenses/LICENSE.txt +44 -0
- accesscontrol-7.4.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2002 Zope Foundation and Contributors.
|
|
4
|
+
#
|
|
5
|
+
# This software is subject to the provisions of the Zope Public License,
|
|
6
|
+
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
|
|
7
|
+
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
|
|
8
|
+
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
9
|
+
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
|
|
10
|
+
# FOR A PARTICULAR PURPOSE
|
|
11
|
+
#
|
|
12
|
+
##############################################################################
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import AuthEncoding.AuthEncoding
|
|
16
|
+
from zope.deferredimport import deprecated
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
deprecated(
|
|
20
|
+
"The functionality of AccessControl.AuthEncoding has moved to"
|
|
21
|
+
" AuthEncoding.AuthEncoding. Please import from there."
|
|
22
|
+
" This backward compatibility shim will be removed in AccessControl"
|
|
23
|
+
" version 6.",
|
|
24
|
+
MySQLDigestScheme='AuthEncoding.AuthEncoding:MySQLDigestScheme',
|
|
25
|
+
PasswordEncryptionScheme='AuthEncoding.AuthEncoding:PasswordEncryptionScheme', # noqa
|
|
26
|
+
SHADigestScheme='AuthEncoding.AuthEncoding:SHADigestScheme',
|
|
27
|
+
SSHADigestScheme='AuthEncoding.AuthEncoding:SSHADigestScheme',
|
|
28
|
+
constant_time_compare='AuthEncoding.AuthEncoding:constant_time_compare',
|
|
29
|
+
is_encrypted='AuthEncoding.AuthEncoding:is_encrypted',
|
|
30
|
+
listSchemes='AuthEncoding.AuthEncoding:listSchemes',
|
|
31
|
+
pw_encode='AuthEncoding.AuthEncoding:pw_encode',
|
|
32
|
+
pw_encrypt='AuthEncoding.AuthEncoding:pw_encrypt',
|
|
33
|
+
pw_validate='AuthEncoding.AuthEncoding:pw_validate',
|
|
34
|
+
registerScheme='AuthEncoding.AuthEncoding:registerScheme',
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# Bogosity on various platforms due to ITAR restrictions.
|
|
38
|
+
# We need to import the module anyway to check for the presence of
|
|
39
|
+
# restrictions, but do want to silence the ImportError.
|
|
40
|
+
|
|
41
|
+
if hasattr(AuthEncoding.AuthEncoding, 'CryptDigestScheme'):
|
|
42
|
+
deprecated(
|
|
43
|
+
"The functionality of AccessControl.AuthEncoding has moved to"
|
|
44
|
+
" AuthEncoding.AuthEncoding. Please import from there."
|
|
45
|
+
" This backward compatibility shim will be removed in AccessControl"
|
|
46
|
+
" version 6.",
|
|
47
|
+
CryptDigestScheme='AuthEncoding.AuthEncoding:CryptDigestScheme',
|
|
48
|
+
)
|
AccessControl/ImplC.py
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
##############################################################################
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2003 Zope Foundation and Contributors.
|
|
4
|
+
#
|
|
5
|
+
# This software is subject to the provisions of the Zope Public License,
|
|
6
|
+
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
|
|
7
|
+
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
|
|
8
|
+
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
9
|
+
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
|
|
10
|
+
# FOR A PARTICULAR PURPOSE.
|
|
11
|
+
#
|
|
12
|
+
##############################################################################
|
|
13
|
+
|
|
14
|
+
"""C implementation of the access control machinery."""
|
|
15
|
+
|
|
16
|
+
from AccessControl.cAccessControl import PermissionRole
|
|
17
|
+
from AccessControl.cAccessControl import SecurityManager as cSecurityManager
|
|
18
|
+
from AccessControl.cAccessControl import \
|
|
19
|
+
ZopeSecurityPolicy as cZopeSecurityPolicy
|
|
20
|
+
from AccessControl.cAccessControl import _what_not_even_god_should_do
|
|
21
|
+
from AccessControl.cAccessControl import aq_validate
|
|
22
|
+
from AccessControl.cAccessControl import guarded_getattr
|
|
23
|
+
from AccessControl.cAccessControl import imPermissionRole
|
|
24
|
+
from AccessControl.cAccessControl import rolesForPermissionOn
|
|
25
|
+
from AccessControl.cAccessControl import setDefaultBehaviors
|
|
26
|
+
from AccessControl.ImplPython import SecurityManager
|
|
27
|
+
from AccessControl.ImplPython import ZopeSecurityPolicy
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class ZopeSecurityPolicy(cZopeSecurityPolicy, ZopeSecurityPolicy):
|
|
31
|
+
"""A security manager provides methods for checking access and managing
|
|
32
|
+
executable context and policies
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class SecurityManager(cSecurityManager, SecurityManager):
|
|
37
|
+
"""A security manager provides methods for checking access and managing
|
|
38
|
+
executable context and policies
|
|
39
|
+
"""
|