[Zope] ZServerHTTPResponse instance has no attribute 'SetHeader'

Henny van der Linde linde at inline-info.nl
Mon Aug 23 14:16:34 EDT 2004


Hi,

I found the following snippet of pythonscript in a howto.

document=context.thesqlquery()
container.REQUEST.RESPONSE.SetHeader('content-type','application/pdf')
return document[0].Test10

The idea is fetching an PDF document from an MySQL database.

But I get the error:

ZServerHTTPResponse instance has no attribute 'SetHeader'

Any ideas?

Henny



More information about the Zope mailing list