[Zope-DB] formatting display of results

Charlie Clark charlie at egenix.com
Fri Feb 27 11:01:04 EST 2004

On 2004-02-26 at 23:50:49 [+0100], Sean F wrote:
> What's the easiest and/or best way to format numeric values returned by
> a ZSQL method?
> (Meaning things like currency, x decimal places, etc.)

As Chris says use a page template to show the result. This will allow you 
to use Python's string formatting directly.

Charlie Clark

Professional Python Services directly from the Source
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

More information about the Zope-DB mailing list