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
63ac97bf
Commit
63ac97bf
authored
May 11, 2009
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted last checkin (breaking tests)
parent
349752cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
doc/CHANGES.rst
doc/CHANGES.rst
+0
-3
src/OFS/Traversable.py
src/OFS/Traversable.py
+2
-3
No files found.
doc/CHANGES.rst
View file @
63ac97bf
...
@@ -23,9 +23,6 @@ Restructuring
...
@@ -23,9 +23,6 @@ Restructuring
Features Added
Features Added
++++++++++++++
++++++++++++++
- Launchpad #373658: traversal using (un)restrictedTraverse
no longer depends no the existence of a request
- Launchpad #373583: ZODBMountPoint - fixed broken mount support and
- Launchpad #373583: ZODBMountPoint - fixed broken mount support and
extended the test suite.
extended the test suite.
...
...
src/OFS/Traversable.py
View file @
63ac97bf
...
@@ -154,7 +154,6 @@ class Traversable:
...
@@ -154,7 +154,6 @@ class Traversable:
path
=
list
(
path
)
path
=
list
(
path
)
REQUEST
=
{
'TraversalRequestNameStack'
:
path
}
REQUEST
=
{
'TraversalRequestNameStack'
:
path
}
web_request
=
getattr
(
self
,
'REQUEST'
,
None
)
path
.
reverse
()
path
.
reverse
()
path_pop
=
path
.
pop
path_pop
=
path
.
pop
...
@@ -199,7 +198,7 @@ class Traversable:
...
@@ -199,7 +198,7 @@ class Traversable:
ns
,
nm
=
nsParse
(
name
)
ns
,
nm
=
nsParse
(
name
)
try
:
try
:
next
=
namespaceLookup
(
next
=
namespaceLookup
(
ns
,
nm
,
obj
,
web_request
).
__of__
(
obj
)
ns
,
nm
,
obj
,
aq_acquire
(
self
,
'REQUEST'
)
)
if
IAcquirer
.
providedBy
(
next
):
if
IAcquirer
.
providedBy
(
next
):
next
=
next
.
__of__
(
obj
)
next
=
next
.
__of__
(
obj
)
if
restricted
and
not
validate
(
if
restricted
and
not
validate
(
...
@@ -265,7 +264,7 @@ class Traversable:
...
@@ -265,7 +264,7 @@ class Traversable:
except
(
AttributeError
,
NotFound
,
KeyError
),
e
:
except
(
AttributeError
,
NotFound
,
KeyError
),
e
:
# Try to look for a view
# Try to look for a view
next
=
queryMultiAdapter
((
obj
,
web_request
),
next
=
queryMultiAdapter
((
obj
,
aq_acquire
(
self
,
'REQUEST'
)
),
Interface
,
name
)
Interface
,
name
)
if
next
is
not
None
:
if
next
is
not
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