Ain't monkeypatching grand?

I patched my own moneyfmt() into l10n.utils in the __init__.py of my 
multicurrency module, per Bruce's suggestion.  My "multicurrency" app is 
based on "tieredpricing" for products.

--rbt

On Thursday, September 18, 2008 at 1:27:45 AM UTC-7, Bojan Mihelac wrote:
>
> I monkey patched moneyfmt function to format proper price with 
> currency for shop I am working on.Currently I have it in urls.py like 
> this: 
>
> # monkey patch moneyfmt 
> import satchmo.l10n.utils 
> import imutil.hrmoney 
> satchmo.l10n.utils.moneyfmt = imutil.hrmoney.hr_moneyfmt 
>
> I wonder where is the best place to put monkey patch so it is read 
> only once when satchmo starts? 
>
> thanks, 
> Bojan

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/satchmo-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to