Commit dc96ef28 authored by Patrick Gerken's avatar Patrick Gerken

Do not assume that you can iterate over a publishable object

parent ab6b6941
...@@ -14,6 +14,8 @@ http://docs.zope.org/zope2/releases/. ...@@ -14,6 +14,8 @@ http://docs.zope.org/zope2/releases/.
- AccessControl = 2.13.8 - AccessControl = 2.13.8
- ZPublisher: Do not assume that you can iterate over a publishable object
2.13.15 (2012-06-22) 2.13.15 (2012-06-22)
-------------------- --------------------
......
...@@ -541,7 +541,8 @@ class BaseRequest: ...@@ -541,7 +541,8 @@ class BaseRequest:
hasattr(parents[1], 'aq_base') and hasattr(parents[1], 'aq_base') and
not hasattr(parents[1],'__bobo_traverse__')): not hasattr(parents[1],'__bobo_traverse__')):
base = parents[1].aq_base base = parents[1].aq_base
if not (hasattr(base, entry_name) or entry_name in base): if not (hasattr(base, entry_name) or
(hasattr(entry_name, '__iter__') and entry_name in base)):
raise AttributeError(entry_name) raise AttributeError(entry_name)
# After traversal post traversal hooks aren't available anymore # After traversal post traversal hooks aren't available anymore
......
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