[Zope] calling ZPublisher from python

Benjamin Buffereau benjamin.buffereau@enst-bretagne.fr
Fri, 14 Dec 2001 15:46:34 +0100


I'd like to write a python function that returns the value of a Zope object
whose URL is given as the function argument. Something like:

import Zope, ZPublisher
def f(URL):
    return ZPublisher.Zope(URL)

But this doesn't work (in an external method). Can anybody help me?

Thanks,
Benjamin.