[Zope] dtml <-> ZPT
Dylan Reinhardt
zope at dylanreinhardt.com
Fri Sep 26 10:25:56 EDT 2003
On Fri, 2003-09-26 at 03:14, Stephan Goeldi wrote:
> The price part looks like this: 'price' : 22.0}
>
> I'd like to replace it by something, which looks like this in DTML:
>
> <dtml-let a="price/currency">
> <dtml-var a fmt="%.0f">
> </dtml-let>
>
> I am a total newbie to ZPT and Python, so how can I achieve the above
> DTML in a Python script?
price = 22.0
formatted_price = '% Of' % price
HTH,
Dylan
More information about the Zope
mailing list