Commit a76d48be authored by Malthe Borch's avatar Malthe Borch

Use `in` operator instead of deprecated `has_key`.

parent f4862137
......@@ -11,6 +11,10 @@ http://docs.zope.org/zope2/releases/.
Bugs Fixed
++++++++++
- 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.
- Avoid conflicting signal registrations when run under mod_wsgi.
Allows the use of `WSGIRestrictSignal Off` (LP #681853).
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment