Hi all !
My zope config : Zope 2.6.4 (binary release, python2.1, win32-x86)
I want to read the content of a folder (localfs) that contains pictures (JPG) to create thumbnails for these pictures.
Nb : « remote » is the name of my zope local file system.
for item in context.remote.fileValues():
print item.id
return printed
gives as result :
Chateau.jpg
Paradise.jpg
Which is right.
for item in context.remote.fileValues():
context.makethumbnail(item)
gives the error message that you find below. (attribute error read)
The « makethumbnail » external method has been tested and works FINE !
If I give as parameter for this method the result of <input type="file" name= …… >, a thumnail is well created.
So the problem is : what’s the right way to give the picture itself listed in the folder contents, as parameter in my python code ????
Any help greatly appreciated !
Regards,
Philippe.
|
Exception Type |
AttributeError |
|
Exception Value |
read |
Traceback (innermost last):
AttributeError: read