[Zope] Find a object in a zope list
Dan Fairs
monster at spiderplant.net
Sun May 8 07:05:58 EDT 2005
Allen Huang wrote:
> I have a fold and I used objectValues['Image'] to make a array list of
> images. I have rename each image using AUTHENTICATED_pic.jpg and want to
> use an if statement to find the image with the same name in the array
> list. Can someone tell how?? Is there a findObject function or something??
Don't use objectValues for this. You simply need:
image = folder['AUTHENTICATED_pic.jpg']
You can't use folder.AUTHENTICATED_pic.jpg because of the dot in the id.
Cheers,
Dan
More information about the Zope
mailing list