[Zope] Using fmt to format
Peter Bengtsson
mail@peterbe.com
Fri, 31 May 2002 00:25:25 +0100
--=======40877611=======
Content-Type: text/plain; x-avg-checked=avg-ok-10426CCA; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit
This works: <dtml-var amount fmt="%.2f">
But suppose I go:
<dtml-let amountformat="'%.2f'">
This doesn't work: <dtml-var amount fmt=amountformat>
Nor this: <dtml-var amount fmt="amountformat">
</dtml-let>
I just get
Error Type: TypeError
Error Value: not all arguments converted
With a dateobject it's easier thanks to the strftime() method of any date
object.
What about strings, ints and floats in DTML??
--=======40877611=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-10426CCA
Content-Disposition: inline
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 2002-05-07
--=======40877611=======--