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

 

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to