[Zope] calling another products methods

Dylan Reinhardt zope at dylanreinhardt.com
Tue Dec 2 13:59:01 EST 2003


On Tue, 2003-12-02 at 10:32, Matthew Thorley wrote:
> Greetings:
> 
> As the subject indicates I am working with a product(P1) and I would like to 
> call the methods of a different product(P2) from with in the first. When I 
> try from P@ import method I get an error. How do I get P2 to into the 
> namespace of P1 or at least into the global namespace. 

Untested, obviously... but probably close enough to help:

-----
from Products.P1.p1module import p1class

def my_wrapper(self, request):
    return p1class.p1method(self, request)
-----

HTH,

Dylan




More information about the Zope mailing list