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
30e6f16d
Commit
30e6f16d
authored
Dec 14, 2011
by
Malthe Borch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use `in` operator instead of deprecated `has_key`.
parent
e68ae88e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
doc/CHANGES.rst
doc/CHANGES.rst
+4
-0
src/ZPublisher/BaseRequest.py
src/ZPublisher/BaseRequest.py
+3
-3
No files found.
doc/CHANGES.rst
View file @
30e6f16d
...
...
@@ -8,6 +8,10 @@ http://docs.zope.org/zope2/releases/.
2.13.12 (unreleased)
--------------------
- Use ``in`` operator instead of deprecated ``has_key`` method (which
is not implemented by ``OFS.ObjectManager``). This fixes an issue
with WebDAV requests for skin objects.
- Updated distributions:
- Products.ZCatalog = 2.13.22
...
...
src/ZPublisher/BaseRequest.py
View file @
30e6f16d
...
...
@@ -540,9 +540,9 @@ class BaseRequest:
if
(
no_acquire_flag
and
hasattr
(
parents
[
1
],
'aq_base'
)
and
not
hasattr
(
parents
[
1
],
'__bobo_traverse__'
)):
if
not
(
hasattr
(
parents
[
1
].
aq_base
,
entry_name
)
or
parents
[
1
].
aq_base
.
has_key
(
entry_name
)
):
raise
AttributeError
,
entry_name
base
=
parents
[
-
1
].
aq_base
if
not
(
hasattr
(
base
,
entry_name
)
or
entry_name
in
base
):
raise
AttributeError
(
entry_name
)
# After traversal post traversal hooks aren't available anymore
del
self
.
_post_traverse
...
...
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