[Zope] Including Script-Generated String in Method Call
Emmanuel Viennet
emmanuel.viennet@lipn.univ-paris13.fr
Sun, 30 Dec 2001 08:54:10 +0100
You can avoid the redirect using Zope function render().
For instance, if the object to display is in the current folder
(PARENTS[0]), you can write:
<dtml-var "_.render(_.getattr(PARENTS[0], name_of_the_doc_to_display ))">
where name_of_the_doc_to_display is a string.
Of course, render() can be called on any object.
Recall that paths like foo/bar/doc are "equivalent" to
foo.bar.doc
Hope this help,
Emmanuel