[z3-five] Five traversal and (un)restrictedTraverse
Florian Schulze
florian.proff.schulze at gmx.net
Sat Mar 18 21:13:27 CET 2006
Hi!
I found a bug when using (un)restrictedTraverse with Five traversal.
unrestrictedTraverse uses a dictionary as a fake REQUEST object, but this
dictionary does not provide the IBrowserRequest interface, so the test in
Five.traversable.Traversable.__bobo_traverse__ fails and the self.REQUEST
object is used, which is wrong. The correct fix would be that
unrestrictedTraverse uses something like Five.traversable.FakeRequest
which provides the IBrowserRequest interface. I have no idea how this
could be fixed from inside Five for Zope 2.8.x. I haven't checked whether
Zope 2.9 still uses a simple dict.
Regards,
Florian Schulze
More information about the z3-five
mailing list