[Zope] dtml-in and getting the title of pictures
Anthony Baxter
Anthony Baxter <anthony@interlink.com.au>
Mon, 20 Dec 1999 11:56:43 +1100
>>> Jochen Haeberle wrote
> Hi all,
>
> I would like to step through all the pictures in a folder. I am using
> the follwing code:
>
> <dtml-in "objectIds('Image')">
try objectValues()
objectIds returns the ids of the objects, objectValues returns the
actual objects. (objectItems returns tuples of (id, object))
> This will give me a table for each picture found, it will display the
> Image but the title used is that of my
> dtml-method I am calling this from. I know the Images have a title
> property set.
> If I use "only" in the dtml-with above, I will get no title at all.
>
> Am I right that sequence-item does not contain an onbject but a
> string of the id? I am using this inside
> an ArticleStore of KM|net News, so it's still possible that there's a
> problem with that...
>
> What am I doing wrong?
>
> Jochen
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
--
Anthony Baxter <anthony@interlink.com.au>
It's never too late to have a happy childhood.