[Zope-Checkins] SVN: Zope/trunk/src/ZPublisher/BaseRequest.py Do not assume that you can iterate over a publishable object
Partick Gerken
cvs-admin at zope.org
Thu Jul 12 10:25:04 UTC 2012
Log message for revision 127340:
Do not assume that you can iterate over a publishable object
Changed:
U Zope/trunk/src/ZPublisher/BaseRequest.py
-=-
Modified: Zope/trunk/src/ZPublisher/BaseRequest.py
===================================================================
--- Zope/trunk/src/ZPublisher/BaseRequest.py 2012-07-12 10:20:44 UTC (rev 127339)
+++ Zope/trunk/src/ZPublisher/BaseRequest.py 2012-07-12 10:25:00 UTC (rev 127340)
@@ -541,7 +541,8 @@
hasattr(parents[1], 'aq_base') and
not hasattr(parents[1],'__bobo_traverse__')):
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)
# After traversal post traversal hooks aren't available anymore
More information about the Zope-Checkins
mailing list