[Zope-dev] in 'singleton'

Robin Becker robin@jessikat.demon.co.uk
Mon, 30 Aug 1999 13:11:01 +0100


In article <4.2.0.58.19990830085237.045c7ea0@lisp.atmm.nl>, Martijn
Pieters <mj@antraciet.nl> writes
>At 18:36 29/08/99 , Robin Becker wrote:
>>it would be really useful to generalise <dtml-in var> to allow for the
>>case when the variable is a singleton. I know I can write testing code
>>for this, but it's a real pain to find that multiple selections change
>>type when only one item is selected.
>
>If you add :list to the form variable, it will always be a list, wether or 
>not it is a singleton:
>
><SELECT NAME="items:list" MULTIPLE SIZE=5>
>  ....</SELECT>
>
>and in the receiving DTML:
>
><dtml-in items>
></dtml-in>
...
that's nicer; thanks
-- 
Robin Becker