[Zope] why is this?
Siggy Brentrup
bsb@winnegan.de
07 Mar 2001 19:34:26 +0100
Joh Johannsen <jojo@farm9.com> writes:
> This works:
>
> <dtml-call "REQUEST.set('asplit',_.string.split(bigstring,'&'))">
> <dtml-call "REQUEST.set('aname',asplit[0])">
> <dtml-var aname>
>
> But this doesn't:
>
> <dtml-call "REQUEST.set('asplit',_.string.split(bigstring,'&'))">
> <dtml-var asplit[0]>
>
> Why is that? What does work for list access?
It's fundamental dtml,
<dtml-var aname> is a shorthand for <dtml-var name="aname">
<dtml-val "asplit[0]'> is a shorthand for <dtml-var expr="asplit[0]">
you were trying to use an expression where a name was expected.
HTH
Siggy