8 May
2002
8 May
'02
4:41 a.m.
On Wed, 8 May 2002 13:44, Chris McDonough wrote:
.. and a bonus alternate DTML implementation mirroring the Python one ..
<dtml-let button_value="REQUEST.get('perm_or_temp', 'P')" possible="{'P':'Persistent','T':'Temporary'}" items="possible.items()"> <dtml-call "items.sort()"> <dtml-in items> <dtml-let "checked = (_[sequence-key] == button_value) and ' CHECKED' or ''> <INPUT TYPE='RADIO' NAME=perm_or_temp VALUE="<dtml-var sequence-key>" <dtml-var checked>> <dtml-var sequence-item> </dtml-let> </dtml-in> </dtml-let>
How about a ZPT example to finish the set? I'd do it, but it's been too long since I was allowed to do ZPT :) Richard