[Zope] setting mime type for a python script

Andreas Jung lists at andreas-jung.com
Fri Aug 19 10:04:49 EDT 2005



--On 19. August 2005 15:49:31 +0200 santiago <chetzacoalt at free.fr> wrote:

> hello
>
> I'm looking for a way to set the mime type served by zope for a python
> script.
>
> I found something for products  (looks like :
> self.self.setFormat(self.content_type) )
> but I just can't get that working in my script, because self is not
> available in scripts....
>
> any idea of how I could get my script being served as a text/css ?
>

FAQ: context.REQUEST.RESPONSE:setHeader('content-type', 'text/css')

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050819/04a12242/attachment.bin


More information about the Zope mailing list