[Zope] list access
Scott Barron
sbarron@cs.ohiou.edu
Wed, 7 Mar 2001 08:09:02 -0500
Hi,
Try <dtml-var expr="number[0]">
-Scott
On Wed, Mar 07, 2001 at 02:03:28PM +0100, Axel Missbach wrote:
> Hello,
> please tell me how access an list member in a dtml-Method/ Document.
>
> per Example, having a list numbers[7,11,13,17,19]. How to get the first
> item?
>
> <dtml-var numbers[0]> results in a KeyError! Why?
>
> greetings
> Axel
>
> _______________________________________________
> 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 )
--
-------------------------------------------------------------------------------
"That's a deer shooting hat."
"Like hell it is. This is a people shooting hat. I shoot people in this hat."