[Erp5-dev] Document patching and importing problems

Łukasz Nowak lukasz.nowak at ventis.com.pl
Wed Jan 9 12:38:57 CET 2008


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

-- 
Ł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.



More information about the Erp5-dev mailing list