How to extend/patch an existing module or package?

Posted by nat on Stack Overflow See other posts from Stack Overflow or by nat
Published on 2010-03-31T10:11:00Z Indexed on 2010/03/31 10:13 UTC
Read the original article Hit count: 431

Filed under:
|
|

I want to extend some locale-specific features of a python application named OpenERP. All I need is implementing a third party module.function that would be called every time OpenERP calls locale.setlocale() function without changing neither OpenERP nor locale module source code.

The only way I can imagine is provide a module named locale.py inside main application package dir, but It seems that is an unpythonic workaround.

© Stack Overflow or respective owner

Related posts about python

Related posts about locale