Terry MacDonald
terry.macdonald at dsl.pipex.com
Thu Sep 23 12:24:09 EDT 2004
I'm probably having one of those dumb moments (It happens often!) but I just don't get this. How does the request object know its supposed to be a file object and relay the image to the browser. When/where does the req.write get invoked to send the image? On Thu, 2004-09-23 at 02:17, Damjan wrote: > > I'm probably missing something obvious here, but in the 'handle_thumb' > > and 'handle_size' class methods if the image is not cached (or is older) > > where is the method sending the image file back to the client? > > It appears only to resize and cache the image not return it. > > img.save(self.req, format=img.format) > > I'm "saving" the image to the req object. mod_python's request object is > fine at emulating a file object.
|