[Product-Developers] Re: Setting a mime-type on a Zope 3 browser view

Derek Broughton derek at pointerstop.ca
Sun Jan 24 03:59:22 UTC 2010


Martin Aspeli wrote:

> David Glick wrote:
>> Martin Aspeli wrote:
>>>> Is it possible to explicitly invoke the TAL XML parser in the
>>>> "self.index()"
>>>> call above, rather than the HTML parser?  I guess it must be...
>>> I'm sure it is, but that's not what controls the Content-Type header
>>> that is sent back to the browser. That header is set by setBody() in
>>> ZPublisher.HTTPResponse::
>>>
>> I didn't read Derek's original question carefully enough. He was
>> actually asking about how to make the TAL parser behave differently (and
>> deal with mixed-case tags properly), rather than about how to change the
>> output content type.  Unfortunately I don't know the answer to the
>> former question.
> 
> D'oh! :)
> 
> I only read your reply and inferred his question from that. Sorry about
> that.

No problem, you got me on the trail.
-- 
derek





More information about the Product-Developers mailing list