29 May
2001
29 May
'01
3:16 p.m.
Not sure exactly what you're doing... but if you look in OFS/Image.py you'll see a manage_addImage() function, perhaps that's what you want?
From: Jean-François Ménard <menard.jean-francois@hydro.qc.ca> Date: Tue, 29 May 2001 10:33:00 -0400 To: <zope@zope.org> Subject: [Zope] ImageFile in a python product
I'm trying to publish images from my python product. I tried:
image = ImageFile('www/myimage.gif', globals())
Does'nt work. I tried:
def image(self): """ Return image """ return ImageFile('www/myimage.gif', globals())
Does'nt work either. I looked at the mailing list archives, with no clear response.
How can I publish images from a python product class?