[Zope] metal strangeness
KevinL
darius@obsidian.com.au
31 Jul 2002 15:29:06 +1000
Hrm. Ignore this email. For some reason, I was getting something else
wrong somewhere. For reference, the ? approach works -
use-macro="here/skins/?locSkin/pagelayout/macros/?skin", with
appropriate functions and tal:defines before it to define locSkin and
skin to be single words.
KJL
On Wed, 2002-07-31 at 14:52, KevinL wrote:
> Ok, can someone suggest a better way of saying this:
>
> <span omit-tag="" tal:define="skin here/getSkin ; locSkin
> here/getLocationSkin ; nonavbar python:1">
> <metal:block
> use-macro="here/skins/${locSkin}/pagelayout/macros/${skin}">
>
> According to my reading of the docs, either
> use-macro="here/skins/?locSkin/pagelayout/macros/?skin", or the above,
> should work. Certainly, here/pagelayout/macros/?skin works, but if I
> put a ?locSkin in the middle of the url, it complains about a list()
> operation over a non-sequence.
>
> By my reading of the specs, metal attributes should use the tales
> syntax, and the tales syntax says the above (first) is valid, I think?
>
> Any suggestions/help greatfully accepted ;)
>
> KJL
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>