Traversable.unrestrictedTraverse doesn't handle __bobo_traverse__ correctly

Bug #143956 reported by Francis J. Lacoste
0
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Medium
Unassigned

Bug Description

__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.

Revision history for this message
Francis J. Lacoste (flacoste) wrote :
Tres Seaver (tseaver)
tags: added: bugday20100519
Tres Seaver (tseaver)
tags: added: bugday
removed: bug+solution bugday20100519 zope
Changed in zope2:
status: New → Triaged
tags: added: traversal
Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.