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
f9993f3b
Commit
f9993f3b
authored
Apr 11, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow restricted code to import AccessControl.getSecurityManager and use
some of the security methods.
parent
c39c4f7d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
doc/CHANGES.txt
doc/CHANGES.txt
+4
-0
lib/python/AccessControl/SecurityManager.py
lib/python/AccessControl/SecurityManager.py
+7
-2
lib/python/AccessControl/__init__.py
lib/python/AccessControl/__init__.py
+3
-0
No files found.
doc/CHANGES.txt
View file @
f9993f3b
...
...
@@ -4,6 +4,10 @@ Zope changes
Change information for previous versions of Zope can be found in the
file HISTORY.txt.
- Restricted code can import AccessControl.getSecurityManager,
and use 'validate', 'validateValue', 'checkPermission',
'getUser', and 'calledByExecutable'.
- Zope's WebDAV support now includes exclusive write locking.
- Data.fs.in index_html now shows zope_quick_start instead
...
...
lib/python/AccessControl/SecurityManager.py
View file @
f9993f3b
...
...
@@ -85,8 +85,8 @@
__doc__
=
'''short description
$Id: SecurityManager.py,v 1.
3 2001/01/10 20:20:46 chrism
Exp $'''
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
$Id: SecurityManager.py,v 1.
4 2001/04/11 17:53:22 evan
Exp $'''
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
ZopeSecurityPolicy
,
os
,
string
...
...
@@ -112,6 +112,11 @@ class SecurityManager:
executable context and policies
"""
__allow_access_to_unprotected_subobjects__
=
{
'validate'
:
1
,
'validateValue'
:
1
,
'checkPermission'
:
1
,
'getUser'
:
1
,
'calledByExecutable'
:
1
}
def
__init__
(
self
,
thread_id
,
context
):
self
.
_thread_id
=
thread_id
self
.
_context
=
context
...
...
lib/python/AccessControl/__init__.py
View file @
f9993f3b
...
...
@@ -92,3 +92,6 @@ from SecurityInfo import ACCESS_PRIVATE
from
SecurityInfo
import
ACCESS_PUBLIC
from
SecurityInfo
import
ACCESS_NONE
from
SecurityInfo
import
secureModule
msec
=
ModuleSecurityInfo
(
'AccessControl'
)
msec
.
declarePublic
(
'getSecurityManager'
)
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