El mar, 24-01-2006 a las 20:41 +0100, Andreas Hartmann escribió:
> [EMAIL PROTECTED] wrote:
> > On 1/24/06, Andreas Hartmann <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> >> <map:match pattern="modules/*/**">
> >> <map:select type="resource-exists">
> >>
> >> <!-- resource exists - serve statically -->
> >> <map:when test="lenya/modules/{1}/resources/{2}">
> >> <map:mount src="module-resources.xmap"/>
> >> </map:when>
> >>
> >> <!-- resource doesn't exist - delegate to module -->
> >> <map:otherwise>
> >> <map:mount src="modules/{1}/sitemap.xmap"/>
> >> </map:otherwise>
> >>
> >> </map:select>
> >> </map:match>
> >
> > I thought that was the purpose of fallback. Any resource (or any
> > other type of file) uses the local (Module-specific) resource if it
> > exists, otherwise Lenya automatically searches the parent modules,
> > then global resources until it finds it.
>
> No, the snippet above just simplifies serving static resources.
> If the resource doesn't exist on the file system, it is assumed
> that the module generates it dynamically.
Hmm, I agree with solprovider why not using the fallback mechanism or
coming back to the locationmap I mentioned in the other thread that
would perfectly fit in here.
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]