[ZCM] [ZC] 1538/ 1 Request "Traversable.unrestrictedTraverse
doesn't handle __bobo_traverse__ correctly"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Fri Oct 15 14:53:54 EDT 2004
Issue #1538 Update (Request) "Traversable.unrestrictedTraverse doesn't handle __bobo_traverse__ correctly"
Status Pending, Zope/bug+solution medium
To followup, visit:
http://zope.org/Collectors/Zope/1538
==============================================================
= Request - Entry #1 by flacoste on Oct 15, 2004 2:53 pm
Uploaded: "unrestrictedTraverse.patch"
- http://zope.org/Collectors/Zope/1538/unrestrictedTraverse.patch/view
__bobo_traverse__ can return either the object to traverse to or a tuple containing multiple elements to add to the traverse path.
The unrestrictedTraverse method doesn't check the return type of __bobo_traverse__ and assumes that only one element is returned.
I'm including a patch which fixes the problem.
==============================================================
More information about the Zope-Collector-Monitor
mailing list