[Zope] object property which has name defined in variable

Dieter Maurer dieter at handshake.de
Tue Nov 18 14:39:02 EST 2003


Jaroslav Lukesh wrote at 2003-11-17 20:05 +0100:
 > It is unbelievable, but I does not know how to show title property from
 > object defined in variable like this example:
 > 
 > <dtml-let picture="'z4_03_2.jpg'">
 > 	<dtml-var "_['picture'].title">

 <dtml-var expr="_.getitem(picture).title">

Reading the "Name Lookup" section in

  <http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html>

make help you with similar questions.

-- 
Dieter



More information about the Zope mailing list