[Zope-dev] in 'singleton'

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


In article <Pine.LNX.4.10.9908291941250.8111-100000@gatekeeper.zwax.mtg.
co.at>, Andreas Kostyrka <andreas@mtg.co.at> writes
>On Sun, 29 Aug 1999, 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.
>Well, what about, the following trick:
><dtml-unless "testvar[0:0]==[]">
><dtml-call "REQUEST.set('testvar',[testvar])">
></dtml-unless>
...
I know how to do the fix; it's just a pain.
-- 
Robin Becker