[Zope] lists and string

Dieter Maurer dieter@handshake.de
Sun, 30 Sep 2001 23:57:04 +0200 (CEST)


Paz writes:
 > I've searching everywhere but get more confused as I read. 
 > 
 > I am creating a list from a number of <input type="text">. After submit
 > the request object becomes:
 > 
 > choice: ['one', 'two', 'three'] 
 > 
 > 
 > Next step, I want to view items through a <dtml-in> construction but it
 > refuses to work. 
 > 
 > <dtml-in "objectValues(choice)"><dtml-var sequence-index><dtml-var
 > sequence-item>
 > 
 > doesn't return anything at all. But everything I'm reading says it
 > should work. 
Are the choice elements meta types?

"objectValues" (and friends) expects a meta type or sequence of
meta types as parameter....

 > Using simply 
 > <dtml-in choice> returns of course an error that I cannot use a string
 > as input. But since its properly constructed as a list, what does it
 > matter?
I seems not to be a list.
Use "<.... name="choice:list" ...>" in your HTML form.


Dieter