[Zope] ImageFile in a python product
marc lindahl
marc@bowery.com
Tue, 29 May 2001 11:16:10 -0400
Not sure exactly what you're doing... but if you look in OFS/Image.py you'l=
l
see a manage_addImage() function, perhaps that's what you want?
> From: Jean-Fran=E7ois M=E9nard <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
>=20
> I'm trying to publish images from my python product. I tried:
>=20
> image =3D ImageFile('www/myimage.gif', globals())
>=20
> Does'nt work. I tried:
>=20
> def image(self):
> """ Return image """
> return ImageFile('www/myimage.gif', globals())
>=20
> Does'nt work either. I looked at the mailing list archives, with no clea=
r
> response.
>=20
> How can I publish images from a python product class?
>=20
>=20