Url computation of a Five resource located in a directory resource fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Low
|
Unassigned |
Bug Description
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://
(The @@ are not implemented in Zope 2, http://
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.browserres
After looking a bit, this error comes from a lack of support in the __call__ method in the class Products.
Indeed. Until very recently subdirectories in resource directories weren't supported at all inside Zope2. In the latest Zope 2.12 versions they should no longer throw errors but might still not work in full