[Zope-Checkins] SVN: Zope/branches/2.13/src/ZPublisher/BaseRequest.py Last commit used hasattr on wrong object

Partick Gerken cvs-admin at zope.org
Thu Jul 12 10:26:15 UTC 2012


Log message for revision 127341:
  Last commit used hasattr on wrong object

Changed:
  U   Zope/branches/2.13/src/ZPublisher/BaseRequest.py

-=-
Modified: Zope/branches/2.13/src/ZPublisher/BaseRequest.py
===================================================================
--- Zope/branches/2.13/src/ZPublisher/BaseRequest.py	2012-07-12 10:25:00 UTC (rev 127340)
+++ Zope/branches/2.13/src/ZPublisher/BaseRequest.py	2012-07-12 10:26:12 UTC (rev 127341)
@@ -542,7 +542,7 @@
             not hasattr(parents[1],'__bobo_traverse__')):
             base = parents[1].aq_base
             if not (hasattr(base, entry_name) or 
-                (hasattr(entry_name, '__iter__') and 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