[Zope] call an object from within a product
Dieter Maurer
dieter@handshake.de
Wed, 30 Jan 2002 01:39:10 +0100
Benjamin Buffereau writes:
> I had a look at your Dispatcher product, but I obviously lack knowledge of the
> internal zope machinery to understand what you're exactly doing. I tried to
> copy/paste your "mapply infrastructure" in an External Method, but I get a
> SystemError: "Failed to import class _missing_name from module __main__".
>
> I didn't think that just get the value of an object would be such a mess. I
> think I'll try this ugly solution:
>
> object_value = urllib.urlopen("localhost:8080"+object_path).read()
If you just want to access the object, then, you can use
"restrictedTraverse". The calling magic is the difficult part.
Dieter