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
5dbfd408
Commit
5dbfd408
authored
May 09, 2006
by
Alec Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applying restrictedTraverse fix to the PageTemplate version for 2.8.
parent
91175424
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
lib/python/Products/PageTemplates/Expressions.py
lib/python/Products/PageTemplates/Expressions.py
+13
-1
No files found.
lib/python/Products/PageTemplates/Expressions.py
View file @
5dbfd408
...
...
@@ -294,7 +294,19 @@ def restrictedTraverse(object, path, securityManager,
container
=
o
.
im_self
elif
(
has
(
aq_base
(
object
),
name
)
and
get
(
object
,
name
)
==
o
):
container
=
object
if
not
validate
(
object
,
container
,
name
,
o
):
try
:
validated
=
validate
(
object
,
container
,
name
,
o
)
except
Unauthorized
:
# If next is a simple unwrapped property, it's
# parentage is indeterminate, but it may have been
# acquired safely. In this case validate will
# raise an error, and we can explicitly check that
# our value was acquired safely.
validated
=
0
if
container
is
None
and
\
guarded_getattr
(
object
,
name
,
M
)
is
o
:
validated
=
1
if
not
validated
:
raise
Unauthorized
,
name
else
:
# Try an attribute.
...
...
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