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
ad3f8ae5
Commit
ad3f8ae5
authored
Aug 07, 2004
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed DWIM'y attempt to filter acquired-but-not-acceessible results
from 'guarded_getattr'.
parent
ed9f6f9a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
16 deletions
+3
-16
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/AccessControl/ImplPython.py
lib/python/AccessControl/ImplPython.py
+0
-4
lib/python/AccessControl/cAccessControl.c
lib/python/AccessControl/cAccessControl.c
+0
-12
No files found.
doc/CHANGES.txt
View file @
ad3f8ae5
...
@@ -144,6 +144,9 @@ Zope Changes
...
@@ -144,6 +144,9 @@ Zope Changes
Bugs fixed
Bugs fixed
- Removed DWIM'y attempt to filter acquired-but-not-aceessible
results from 'guarded_getattr'.
- Collector #1267: applied patch to fix segmentation faults on
- Collector #1267: applied patch to fix segmentation faults on
x86_64 systems
x86_64 systems
...
...
lib/python/AccessControl/ImplPython.py
View file @
ad3f8ae5
...
@@ -554,10 +554,6 @@ def guarded_getattr(inst, name, default=_marker):
...
@@ -554,10 +554,6 @@ def guarded_getattr(inst, name, default=_marker):
return
v
return
v
validate
=
SecurityManagement
.
getSecurityManager
().
validate
validate
=
SecurityManagement
.
getSecurityManager
().
validate
# Filter out the objects we can't access.
if
hasattr
(
inst
,
'aq_acquire'
):
return
inst
.
aq_acquire
(
name
,
aq_validate
,
validate
)
# Or just try to get the attribute directly.
if
validate
(
inst
,
inst
,
name
,
v
):
if
validate
(
inst
,
inst
,
name
,
v
):
return
v
return
v
raise
Unauthorized
,
name
raise
Unauthorized
,
name
lib/python/AccessControl/cAccessControl.c
View file @
ad3f8ae5
...
@@ -2159,18 +2159,6 @@ guarded_getattr(PyObject *inst, PyObject *name, PyObject *default_,
...
@@ -2159,18 +2159,6 @@ guarded_getattr(PyObject *inst, PyObject *name, PyObject *default_,
}
}
/*
/*
# Filter out the objects we can't access.
if hasattr(inst, 'aq_acquire'):
return inst.aq_acquire(name, aq_validate, validate)
*/
if
(
aq_isWrapper
(
inst
))
{
Py_DECREF
(
v
);
return
aq_Acquire
(
inst
,
name
,
aq_validate
,
validate
,
1
,
NULL
,
0
);
}
/*
# Or just try to get the attribute directly.
if validate(inst, inst, name, v):
if validate(inst, inst, name, v):
return v
return v
*/
*/
...
...
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