[Zope] get property of type 'list'

Max Møller Rasmussen maxm@normik.dk
Wed, 10 Jan 2001 15:57:39 +0100


From: Andrei Belitski [mailto:andrei.belitski@student.uni-tuebingen.de]

>I add a list property to a DTML document of type 'tokens' (e.g. '[1, 2,
>3]') wenn i try to retrieve it with _.getitem i get '[1,' '2,' '3]'
>instead of '1' '2' '3'

>How can I get Zope to interpret my property like a list not a string or
>whatever else?

Actually it IS treating it as a list:

<dtml-var "tokens[0]"> Should return '1'

This should list each item:

<dtml-in tokens>
    <dtml-var sequence-item><br>
</dtml-in>


Regards Max M