[Zope] string or list?

Michel Pelletier michel@digicool.com
Tue, 11 Apr 2000 17:21:57 -0700


Curtis Maloney wrote:
> 
> Greetings,
> 
>         I'm having a small problem (duh! :)
> 
>         In my page, a person might select a number of items from a list.  The
> list is generated from an SQL query, and has unique IDs for each row.  Fine.
> Simple, right?
> 
>         Sure... And each row has a radiobutton input called 'done'.  When the
> user hits submit, if they've pressed any of the radiobuttons i will get either
> a 'done' string (one selected) or a 'done' list (multiple selected).
> 
>         Problem is.. how do i tell which?  Is it possible with DTML, as i try
> to avoid using external methods for something so trivial.

Name your radiobuttons 'done:list' and ZPublisher will allways give you
a list, even if only one item is selected.

-Michel