[Zope] Converting REQUEST style lists into real lists
Tomek Giela
zope@www.imagination.com.pl
Tue, 24 Jul 2001 04:19:53 +0000
When you put into your form:
<input type="checkbox" name="varia" value="1">
<input type="checkbox" name="varia" value="2">
<input type="checkbox" name="varia" value="3">
<input type="checkbox" name="varia" value="4">
<input type="checkbox" name="varia" value="5">
<input type="checkbox" name="varia" value="6">
and then select first three of them and submit that form,
you'll get in form "action" document:
<dtml-var varia>
displayed as: ['1','2','3']
Is there an easy way to convert 'varia' into a list?
Those inputs are dynamicaly generated from database, and I want to analyse
which were choosen in <dtml-in "varia"> block.
Or, maybe there is another trick to colect&analyse them in a simple loop?
--
Tomek Giela
IMAGINATION DESIGN S.C.