[Zope] get dtml content from script
Dieter Maurer
dieter@handshake.de
Fri, 8 Nov 2002 23:21:16 +0100
Juan Manuel Ruiz Garcia writes:
> I have a variable called 'file' that has the name of a DTML/HTML Document
> tahta exist inside a Folder 'folder'
When you have an object "o" and an id "id" (a string),
then you can use "o.getattr(id)" to get "o"s (own or acquired) child
with id "id".
Note, that you need to call DTML objects to render them.
Note that they usually require positional arguments to know
about their context.
Read "Calling DTML objects" in
<http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>
if necessary.
Dieter