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

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to