[Zope3-Users] TAL and Decimals
David Johnson
djohnson at jsatech.com
Tue Apr 4 12:24:58 EDT 2006
I am reading a decimal field from a database and trying to display it in a
page template. What is the TAL to do this?
Among other things, I've tried:
<div tal:replace="python: u'%f' % (item.price)" />
Which generates the follow exception:
ForbiddenAttribute: ('__float__', Decimal("0.00"))
I've also tried the simple:
$<div tal:replace="item/price" />
Which displays:
$<security proxied decimal.Decimal instance at 0x41d76694>
Any ideas?
--
David Johnson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060404/61ccf758/attachment.htm
More information about the Zope3-users
mailing list