[Zope] Question about accessing properties of images

Dieter Maurer dieter@handshake.de
Wed, 20 Feb 2002 00:25:30 +0100


Kevin Carlson writes:
 > I have some code where I am in a folder and am accessing an image in that
 > folder by name (passed into the page as an argument named "pic" in the URL).
 > I am trying to access a property ("desc") of the image object ("pic") and am
 > only able to do it using the following code: (Note that I am doing this from
 > the folder containing the image object.)
 > 
 >      <dtml-in objectItems prefix=p >
 >          <dtml-if expr="p_key == pic">
 >              <dtml-var desc html_quote>
 >          </dtml-if>
 >      </dtml-in>
"<dtml-var expr="pic.desc" html_quote>" does not work?
What happens/goes wrong?


Dieter