z3c.layer.pagelet : resourceDirectory does not work
Bug #302816 reported by
Christophe Combelles
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+
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+
There is a wrong or missing registration somewhere when traversing "@@".
affects: | zope3 → z3c.layer.pagelet |
To post a comment you must log in.
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- incompatibilite s though.