Commit 5af17492 authored by Patrick Gerken's avatar Patrick Gerken

Do not assume that you can iterate over a publishable object

parent da088f0b
...@@ -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 entry_name in base
(hasattr(base, '__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