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
d6734c27
Commit
d6734c27
authored
May 21, 2001
by
Evan Simpson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix [un]restrictedTraverse of '/'.
parent
926e34b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
lib/python/OFS/Traversable.py
lib/python/OFS/Traversable.py
+7
-2
No files found.
lib/python/OFS/Traversable.py
View file @
d6734c27
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
'''This module implements a mix-in for traversable objects.
'''This module implements a mix-in for traversable objects.
$Id: Traversable.py,v 1.
7 2001/01/17 15:18:44 bri
an Exp $'''
$Id: Traversable.py,v 1.
8 2001/05/21 19:47:28 ev
an Exp $'''
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
import
Acquisition
import
Acquisition
...
@@ -151,6 +151,11 @@ class Traversable:
...
@@ -151,6 +151,11 @@ class Traversable:
REQUEST
=
{
'TraversalRequestNameStack'
:
path
}
REQUEST
=
{
'TraversalRequestNameStack'
:
path
}
path
.
reverse
()
path
.
reverse
()
pop
=
path
.
pop
pop
=
path
.
pop
if
len
(
path
)
>
1
and
not
path
[
0
]:
# Remove trailing slash
path
.
pop
(
0
)
if
restricted
:
securityManager
=
getSecurityManager
()
if
restricted
:
securityManager
=
getSecurityManager
()
else
:
securityManager
=
None
else
:
securityManager
=
None
...
...
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