Kevin Jones wrote:
The problem was that I didn't explicitly define "id." In the line where I add the image, I simply added:
id=image_folder.manage_addImage blah blah blah...
and that made it work? I didn't know manage_addImage returned the id of the image being added...
It is interesting that when I send over the image to be added with the form entry, the id (as we think of on a Zope object) doesn't come over with it.
Probably some namespace clash with python internal id funtion, maybe?
Hmmmm, perhaps the form <input ... type="file"> doesn't actually make it a Zope object,
Well, that will appear in the request as a FileUpload instance...
and neither does the Python Product to get the file from my local file system??
Sorry, that didn't parse as english :/
Which is why, as you queried, the property has no where to go but up the Zope structure until it finds something that IS an object.
I think your logic is going astray here. What's the FULL code of your python script that wasn't working? What's the FULL code of your python script that IS working? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk