[Seaside] Money ScaledDecimal is it really *appropriate* ?

Avi Bryant avi.bryant at gmail.com
Fri Feb 3 10:37:04 CET 2006


On Feb 3, 2006, at 1:25 AM, Dmitry Dorofeev wrote:

> Thanks Avi,
>
> I just wondering can I use Money amount: 15.89 currency: '£'
>
> to use with HTML rendering (same applies to Euro sign)
>
> or do we need just different method to rendering HTML friendly
> version of currency symbols based on name of currency ?
> like Dictionary with
> 'USD' -> $
> 'GBP' -> '£'
> 'EUR' -> '€'

The latter, I think.

We should probably have a Currency object, in fact, to encapsulate  
some of that logic.  Not sure whether to have a subclass per currency  
or something simpler...

Avi


More information about the Seaside mailing list