[z3-five] browser:resource questions
Brian Sutherland
jinty at web.de
Tue Mar 28 14:43:18 CEST 2006
On Tue, Mar 28, 2006 at 01:32:01PM +0200, Lennart Regebro wrote:
> In Five, something defined with browser:resource is available on any
> object that is Five-traversable. In CalZope, I have no idea if
> anything else than the calendar is traversable. The result is that I
> always use relative names for the resources, which defeats caching. So
> I would like to be able to use /++resource++image.png for example, and
> that means I need to know that this always works, even without me
> making the root five-traversable.
Yep, I have this issue as well with my CalZope related stuff and would
desperately love a proper solution.
> How does this work in Zope3, btw? Is the resource available on
> everything there, thanks to default traversal?
from zope.app.publisher.browser.metadirctives:
This is the name used in resource urls. Resource urls are of
the form site/@@/resourcename, where site is the url of
"site", a folder with a site manager.
We make resource urls site-relative (as opposed to
content-relative) so as not to defeat caches.""",
>
> --
> Lennart Regebro, Nuxeo http://www.nuxeo.com/
> CPS Content Management http://www.cps-project.org/
> _______________________________________________
> z3-five mailing list
> z3-five at codespeak.net
> http://codespeak.net/mailman/listinfo/z3-five
>
--
Brian Sutherland
Metropolis - "it's the first movie with a robot. And she's a woman.
And she's EVIL!!"
More information about the z3-five
mailing list