[Zope] dtml-var and the fmt attribute

Chui Tey teyc@bigfoot.com
Sat, 6 Nov 1999 22:10:49 +1000


Trying to set the fmt of a dtml-var tag conditionally:

<dtml-if "ord==2">
<dtml-call REQUEST.set('cell_fmt','%3d')>
<dtml-else>
<dtml-call REQUEST.set('cell_fmt','%3.2f')>
</dtml-if>

<!--#var DP30 fmt="cell_fmt" thousands_commas null=0-->

This barfs.... Any workarounds? TIA.

Chui