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 
``IBrowserPublisher`` 
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 
the 
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`` 
method.

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue64>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to