Re: [Zope] Creating Photo object from an Image object

2005-07-17 Thread Peter Bengtsson
#id1,title1 image id and tile def doAddPhoto(id1, title1): # some comments img = context.getObjectById(id1) # this returns the object part of object item array from context.objectItems s=ph +str(id1) context.manage_addPhoto(id=s, file=img.data,title=title1,

[Zope] Creating Photo object from an Image object

2005-07-16 Thread Thomas Adams
Hi, I have a problem with the Photo product. I want to create a Photo object from an existing Image object. I have a form with id and title input tags which are initialized with appropriate values from a special folder where the Image objects resides . Now I have written a PythonSript to