[Zope] Refrencing.

Dieter Maurer dieter@handshake.de
Sun, 5 Nov 2000 18:51:06 +0100 (CET)


Jason C. Leach writes:
 > <dtml-let x=sequence-item>
 > 
 > What is the sintax to refrence that object?
 > 	<img src=<dtml-var x.id>
This will give you a NameError (maybe KeyError), as
the variable "x.id" is unknown.

Are you interested in the "id" of "x"?
Then the best thing is:

     <dtml-with x>
       <dtml-var id>
     </dtml-with>


Dieter