[Zope3-Users] Q: Setting response header from ZPT Page

Paul Everitt paul at zope-europe.org
Mon Jan 24 04:00:14 EST 2005


On Jan 23, 2005, at 4:22 PM, Fred Drake wrote:

> On Sun, 23 Jan 2005 14:24:07 +0100, Paul Everitt 
> <paul at zope-europe.org> wrote:
>> After a lot of grepping, googling, and browsing the online API docs,
>> the closest I got was zope.publisher.browser.BrowserRequest.  This has
>> a "headers" mapping that is read-only, and a getHeader method.  I
>> couldn't find setHeader though.
>
> Use request.response.setHeader().

Thanks, that did the trick.  I mistakenly thought I wasn't getting 
text/xml because I used Tools->Page Info in Firefox and saw text/html.  
I realized later that the content is in an iframe, and thus I needed to 
view the page info for the iframe.

--Paul



More information about the Zope3-users mailing list