[prev in list] [next in list] [prev in thread] [next in thread]
List: zope
Subject: Re: [Zope] lists and string
From: Dieter Maurer <dieter () handshake ! de>
Date: 2001-09-30 21:57:04
[Download RAW message or body]
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
_______________________________________________
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 )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic