6 Jul
1999
6 Jul
'99
11:36 p.m.
-----Original Message----- From: Robin Becker [mailto:robin@jessikat.demon.co.uk] Sent: Wednesday, July 07, 1999 02:01 To: zope@zope.org Subject: [Zope] semipersistent
I'm using various external methods to create GIF files in my current server. These are expensive to produce, but are created on a per user basis eg as the results of a user input.
How can I make these temporary in the sense that they live until the connection is dropped.
Its quite easy. Just have a method like this def getGif(self, AUTHENTICATED_USER, REQUEST, RESPONSE): res = makeGif() RESPONSE.setHeader("Content-Type",'image/gif') return res Then just call the method directly ie <img src="blah/getGif">