optilude <optil...@gmail.com> added the comment:

The pastie is gone, but the problem is basically this: z2bob does the 
``browserDefault()`` lookup in ``next_name()`` and is capable of providing a 
name to 
continue traversal to. However, the ``browserDefault()`` protocol returns a 
tuple of 
``(obj, names)``. The ``obj`` is usually the context on which the 
adapter was looked up, but not always: it can actually change the traversal 
context. The file resource does this by doing:

  return getattr(self, request.method), ()

This basically returns the ``GET`` method. Since ``next_name()`` can't change 
current traversal object and the name tupe is empty, it does nothing, causing 
``mapply`` to call the file resource (which returns its URL) instead of calling 
its ``GET`` 

Repoze Bugs <b...@bugs.repoze.org>
Repoze-dev mailing list

Reply via email to