[Zope] Help: Return and render an object (DTML doc or method) from python script.

Gilles Lenfant glenfant@bigfoot.com
Wed, 30 May 2001 17:02:36 +0200


Hi,

My project uses inclusion of objects (DTML doc or methods) which relative
path is computed by a python script.

<calling script>
...
<dtml-var "myscript(argument)">
...
</calling script>

The python script "myscript" computes the relative path of the DTML object
to include (no problem till there)

The problem is : how to have this target DTML document/method rendered in
place of the <dtml-var "myscript(argument)"> ?

In python, the (supposed) classical "return contex.getitem(path)" raises an
AttributeError (no "getitem" attribute)

Any hint for this ?

TIA

--Gilles