SVN: Zope/branches/2.13/src/ZPublisher/BaseRequest.py Last commit used hasattr on wrong object
Partick Gerken <[email protected]> Thu, 12 Jul 2012 06:26:15 -0400 (EDT)
| Newsgroups | gmane.comp.web.zope.cvs |
|---|---|
| Message-ID | <20120712102615.F04DB940D4__44989.1269825914$1342088783$gmane$org@cvs.zope.org> |
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
_______________________________________________
Zope-Checkins maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-checkins