[Zope] Rendering other objects with python script

Andreas Kostyrka andreas@kostyrka.priv.at
12 Sep 2002 12:53:05 +0200


Hi!

I'm wondering how I can get the rendering that DocumentTemplates seem to
apply automatically with Python Scripts:

<dtml-var "_['testname']">

return getattr(context,"testname")

gives me "<Folder instace ...>"
Trying to augment it with:
return getattr(context,"testname")()
or
return getattr(context,"testname")(request)

only gives me KeyErrors too :(

Andreas