[Zope] call an object from within a product
Dieter Maurer
dieter@handshake.de
Mon, 28 Jan 2002 21:13:34 +0100
Benjamin Buffereau writes:
> How to call an object from a product? I would like to obtain exactly the same result
> as if the object was called through the web or with dtml-var.
Your question in not stupid at all and it is not at all simple.
In fact, it is impossible:
ZPublisher and "dtml-var" call objects in very different ways
(although you may not always see the differences).
You may have a look at my "Dispatcher" product at
<http://www.dieter.handshake.de/pyprojects/zope>
It tries to do something similar than you want.
Due to the problems mentioned, it is not perfect and I am not
completely satisfied with it.
Dieter