HI, i've implemented i10n as stated - adding L10N_SETTINGS within the
settings.py file - when i set GBP as the default currency I don't see
any price fields on products within the admin and on creating or
updating a product it fails with:

2010-01-13 21:11:34,553 satchmo_utils.widgets: DEBUG    value: <class
'decimal.Decimal'> appearing in satchmo.log

if I change the default currency back to USD the price fields are
there and products are added with no problems.  Is there anything
thats glaringly obvious with this or that could potentially be a
misconfiguration problem on my side?

Any help would be greatly appreciated
Ryan

On Jan 3, 2:20 am, Chris Moffitt <[email protected]> wrote:
> Bruce,
>
> Thanks for doing this. It may not be apparent to everyone but this should be
> a nice fix that will resolve a lot of issues that people have had with
> locale settings - especially getting Satchmo and Pinax to play more nicely
> together.
>
> Thanks a ton for getting this in place.
>
> -Chris
>
>
>
> On Sat, Jan 2, 2010 at 7:32 PM, Bruce Kroeze <[email protected]> wrote:
> > Improved currency handling
> > ----------------------------------------
> > In changeset 1294, we changed the locale handling to reduce configuration
> > issues.
>
> > The livesettings system is no longer used for setting and configuring
> > currency.  Please look at l10n.l10n_settings for examples of configuration.
> >  Essentially, if your default currency is not USD, you will need to add a
> > new setting to your settings.py file, and configure the "currency_formats"
> > and "default_currency" for your country.
>
> > For example, say you had a new currency, the FOO, which you wanted to use
> > as your default currency, and say that it usually is written as ^value, or
> > if negative ^(value)
>
> > In your settings.py you would do something like this
>
> > {{{
> > L10N_SETTINGS = {
> >   'currency_formats = {
> >      'FOO' : {'symbol': '^', 'positive' : "^%(val)0.2f", 'negative':
> > "^(%(val)0.2f)", 'decimal' : '.'},
> >   },
> >   'default_currency' : 'FOO'
> > }
> > }}}
>
> > --
> > Bruce Kroeze
> >http://www.ecomsmith.com
> > It's time to hammer your site into shape.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Satchmo users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<satchmo-users%2bunsubscr...@goog 
> > legroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/satchmo-users?hl=en.
-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.


Reply via email to