Resource directories are not traversable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
five.grok |
Fix Released
|
Medium
|
Sylvain Viollon |
Bug Description
I am using an auto-registered 'static' directory in my package. This works when I traverse to it via URL (http://
However, in Plone, the ResourceRegistries has some code that attempts to do an 'exists:' path expression on the resource to decide whether to include it when the CSS is cooked into a single stylesheet. This returns false.
I found the cause though: If I try to do path-traverse to portal/
"the container has no security assertions". "The container" here is the ZopeTwoDirector
This does not happen with a <browser:
Presumably, we are either missing an InitializeClass (or the <five:registerClass /> directive), or a mixin of some kind.
Changed in five.grok: | |
assignee: | nobody → thefunny |
importance: | Undecided → Medium |
status: | New → Confirmed |
milestone: | none → 1.0b1 |
Changed in five.grok: | |
status: | Confirmed → Fix Released |
Hello,
I wrote two functional tests in five.grok, which ask to render in a template:
<span condition= "exists: view/static/ style.css" >Test succeed</span> condition= "exists: view/static/ nonexistant. css">Test failed</span>
tal:
<span
tal:
And:
<span condition= "exists: context/ ++resource+ +five.grok. ftests. view/style. css">Test succeed</span> condition= "exists: context/ ++resource+ +five.grok. ftests. view/nonexistan t.css"> Test failed</span>
tal:
<span
tal:
And both examples work without any problems. Could you help me to reproduce that bug ? Maybe it's the ResourceRegistry which does some strange hacks.
Sylvain,