Hi, Andrei
I think I have it figured out. I just submitted something similar to
the Collector about an analogous problem I have been having with 'lines'
properties.
When you create your tokens property, you should make its value a
string, like:
'1 2 3'
not a list: [1, 2, 3]
If your data is
Hi Andrei
Andrei Belitski writes:
... manage_addProperties(id='tok', type='tokens', value=[1,2,3,4]) ...
...
dtml-tok;
yields
['[1,', '2,', '3,', '4]']
...
I now understand what happens:
You interpret "type='tokens'" in a way, that
the property value is a list.
And
Hi!
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?
Thank you in advance!
From: Andrei Belitski [mailto:[EMAIL PROTECTED]]
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
Andrei Belitski writes:
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'
Are you sure, it was '[1,' '2,' '3]' and not ['1', '2', '3', '4']?
If it were, it would be really