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
03d1d69b
Commit
03d1d69b
authored
Jun 03, 2004
by
Casey Duncan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused local assignment
Add test for upward traversal
parent
d131f572
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/OFS/Traversable.py
lib/python/OFS/Traversable.py
+0
-1
lib/python/OFS/tests/testTraverse.py
lib/python/OFS/tests/testTraverse.py
+6
-0
No files found.
doc/CHANGES.txt
View file @
03d1d69b
...
...
@@ -122,6 +122,9 @@ Zope Changes
Bugs fixed
- unrestrictedTraverse() refactored to remove hasattr calls (which mask
conflict errors) and for greater readability and maintainability.
- Zope can now be embedded in C/C++ without exceptions being raised
in zdoptions.
...
...
lib/python/OFS/Traversable.py
View file @
03d1d69b
...
...
@@ -127,7 +127,6 @@ class Traversable:
return
self
_getattr
=
getattr
_hasattr
=
hasattr
_none
=
None
marker
=
_marker
...
...
lib/python/OFS/tests/testTraverse.py
View file @
03d1d69b
...
...
@@ -256,6 +256,12 @@ class TestTraverse( unittest.TestCase ):
self
.
assertEqual
(
self
.
root
.
restrictedTraverse
(
'happy/happy'
,
'joy'
),
'joy'
)
def
testTraverseUp
(
self
):
# Test that we can traverse upwards
self
.
failUnless
(
aq_base
(
self
.
root
.
folder1
.
file
.
restrictedTraverse
(
'../..'
))
is
aq_base
(
self
.
root
))
def
test_suite
():
suite
=
unittest
.
TestSuite
()
...
...
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