[zope2-tracker] [Bug 669649] [NEW] Url computation of a Five resource located in a directory resource fails
Sylvain Viollon
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:
http://localhost/manfred/@@/five.grok.ftests.view/style.css
(The @@ are not implemented in Zope 2,
http://localhost/manfred//++resource++five.grok.ftests.view/style.css is
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
zope.browserresource).
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
Importance: Undecided
Status: New
--
Url computation of a Five resource located in a directory resource fails
https://bugs.launchpad.net/bugs/669649
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
mailing list