[Zope] How to disply a property of an object created with a Z class

Dieter Maurer dieter@handshake.de
Mon, 27 Jan 2003 22:12:49 +0100


Satheesh Babu wrote at 2003-1-26 21:22 -0500:
 > you will need to actually get the object from the string id
 > 
 > <dtml-with "_.getattr(this(), document_id)">
Often, you can use the simpler: "_.getitem(document_id)".

"getitem" looks in the complete DTML namespace while
"getattr" looks only in the namespace of the given object's
attributes (its own and acquired ones).


Dieter