z3c.layer.pagelet : resourceDirectory does not work

Bug #302816 reported by Christophe Combelles
4
Affects Status Importance Assigned to Milestone
z3c.layer.pagelet
New
Undecided
Unassigned

Bug Description

This kind of URL doesn't work in z3c.layer.pagelet : /++skin++myskin/site/@@/img/image.png

During traversal, an ItemTraverser is used to traverse "img", and it fails with NotFound.
A Resources view should be found instead, to be able to use the resource directory.

However this URL works : /++skin++myskin/site/++resource++img/image.png

There is a wrong or missing registration somewhere when traversing "@@".

Revision history for this message
Dan Korostelev (nadako) wrote :

It looks like problem I've experienced before. The problem is that views/resources are looked as "Interface", not as something like "IResource" and when you register an unnamed z3c:layout for upper browser layer, it's looked up as Interface before the zope.app.publisher's Resources that is registered as unnamed browser:page in the less-specific browser layer.

The quick fix is to re-register zope.app.publisher.browser.resources.Resources in your top browser layer as an unnamed browser:page.

I mailed about it in the mailing list, but there weren't any interest (http://mail.zope.org/pipermail/zope3-users/2008-September/008191.html). I hope we'll get back and fix that problem, possibly with backward-incompatibilites though.

affects: zope3 → z3c.layer.pagelet
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.