[Zope] ImageFile in a python product

Jean-François Ménard menard.jean-francois@hydro.qc.ca
Tue, 29 May 2001 10:33:00 -0400


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?