[zope2-tracker] [Bug 669649] [NEW] Url computation of a Five resource located in a directory resource fails
sylvain at infrae.com
Mon Nov 1 16:53:06 EDT 2010
Public bug reported:
If you ask via __call__() the URL of a resource on a Five resource
located in a directory resource, you obtain a URL valid only for Zope 3:
(The @@ are not implemented in Zope 2,
the expected result).
This result can only be obtained if you setup a local site somewhere in
the context parent list, otherwise you get an error that there is not
enough information to compute the URL (this could been seen as a bug in
After looking a bit, this error comes from a lack of support in the
__call__ method in the class Products.Five.resource.Resource: there is a
getMultiAdapter with the resource's parent to get an AbsoluteURL
adapter, that actually return a specific adapter for resource in the
case where the parent is a DirectoryResource (implemented in
zope.browserresource, registered for IResource).
** Affects: zope2
Url computation of a Five resource located in a directory resource fails
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
More information about the zope2-tracker