[Zope] Referencing properties of child items

Kevin Carlson khcarlso@bellsouth.net
Fri, 15 Feb 2002 00:24:55 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0124_01C1B5B7.318B2610
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have a small application that is attempting to populate a portion of a =
page with the value of a property that belongs to a child item.  I have =
passed the ID of the child item into the dtml page that is handling the =
request and can properly render the child item ( a jpeg) but cannot seem =
to extract a text property from the child item and have it display.

I am calling the dtml like this:

http://localhost:8080/photoAlbum/xxx/yyy/test_html?pic=3D01

where the pic value represents the id of the picture I want to display.

Each pic has a property named "desc" that contains some text I want to =
display.  I have tried numerous things but can't seem to get to the =
property value.  Can anyone offer a solution?

Thanks,

Kevin

------=_NextPart_000_0124_01C1B5B7.318B2610
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have a small application that is =
attempting to=20
populate a portion of a page with the value of a property that belongs =
to a=20
child item.&nbsp; I have passed the ID of the child item into the dtml =
page that=20
is handling the request and can properly render the child item ( a jpeg) =
but=20
cannot seem to extract a text property from the child item and have it=20
display.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am calling the dtml like =
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://localhost:8080/photoAlbum/xxx/yyy/test_html?pic=3D01">http=
://localhost:8080/photoAlbum/xxx/yyy/test_html?pic=3D01</A></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>where the pic value represents the id =
of the=20
picture I want to display.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Each pic has a property named "desc" =
that contains=20
some text I want to display.&nbsp; I have tried numerous things but =
can't seem=20
to get to the property value.&nbsp; Can anyone offer a =
solution?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Kevin</FONT></DIV></BODY></HTML>

------=_NextPart_000_0124_01C1B5B7.318B2610--