[Zope] Re: python script looping

Marcos Iuato marcos at hiper.com.br
Tue Jul 13 09:31:25 EDT 2004


Somethimes the id is not a property but a method that return the id, try to 
use the method getId() 

[]'s 

Hamzat Kamal writes: 

> 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
 



More information about the Zope mailing list