[Zope] MIME type assignment to a method
Dieter Maurer
dieter at handshake.de
Thu Feb 12 15:35:07 EST 2004
J C Lawrence wrote at 2004-2-11 17:52 -0500:
> ...
>More specifically the methods are going to be dynamically generating and
>returning strings (7bit and 8bit) which I need associated with the
>appropriate MIME types (eg text/plain, image/jpeg, etc).
Returning to whom? to "ZPublisher" (i.e. in response to a WEB request)?
If so, you can use "self.REQUEST.RESPONSE.setHeader('Content-Type',...)".
--
Dieter
More information about the Zope
mailing list