[Zope] python script looping

Hamzat Kamal hamzatk at dnetsystems.net
Tue Jul 13 08:55:49 EDT 2004


Hello All,

I am getting


Error Type: TypeError
Error Value: unsliceable object

when i ran this python script

yymmdd='040712'
for i in container.pictures.objectValues(['Image']):
         if yymmdd==i.id[5:11]:
             return i.title


the pictures is the name of folder that contain the images but i want the 
script to be in the same container as the pictures.

thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20040713/6d3d32e4/attachment.htm


More information about the Zope mailing list