Łukasz Nowak
2008-01-09 11:38:57 UTC
Hello,
I've got mine product (Ventis) which redefines Resource, it looks like:
Ventis/Document/Resource.py:
from Products.ERP5.Document.Resource import Resource as ERP5Resource
class Resource(ERP5Resource):
"""
And here my patches comes
"""
Almost all works fine.
But there is a problem. Currency.py in
Products/ERP5/Document/Currency.py has line:
from Products.ERP5.Document.Resource import Resource
and my patched resource isn't used.
How shall I monkey-patch Zope to be seen in such imports?
Regards,
Luke
I've got mine product (Ventis) which redefines Resource, it looks like:
Ventis/Document/Resource.py:
from Products.ERP5.Document.Resource import Resource as ERP5Resource
class Resource(ERP5Resource):
"""
And here my patches comes
"""
Almost all works fine.
But there is a problem. Currency.py in
Products/ERP5/Document/Currency.py has line:
from Products.ERP5.Document.Resource import Resource
and my patched resource isn't used.
How shall I monkey-patch Zope to be seen in such imports?
Regards,
Luke
--
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.
?ukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...'' I am only craftsman.