Re: [Zope] get property of type 'list'

2001-01-12 Thread Jim Washington
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

[Zope] Potential BUG manage_addProperty(was: [Zope] get property of type 'list') (was: [Zope] get property of type 'list')

2001-01-12 Thread Dieter Maurer
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

[Zope] get property of type 'list'

2001-01-10 Thread Andrei Belitski
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!

RE: [Zope] get property of type 'list'

2001-01-10 Thread Max Møller Rasmussen
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

Re: [Zope] get property of type 'list'

2001-01-10 Thread Dieter Maurer
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