[ZPT] Content-type on PageTemplateFile

Evan Simpson evan@zope.com
Fri, 25 Jan 2002 10:54:31 -0500


Thomas Olsen wrote:
> Is it in anyway possible programmatically to set the 'content_type' on a 
> PageTemplateFile?

Sure.  In the Python code that creates the PTF, do like so:

myptf = PageTemplateFile(...)
myptf.content_type = 'text/funky'

Cheers,

Evan @ Zope