5 Jan
2005
5 Jan
'05
7:09 p.m.
Sam Boggess <sboggess@gmail.com> wrote:
I figured out how to return a pdf from a python script:
context.REQUEST.RESPONSE.setHeader('Content-Type','application/pdf') return context['blach.pdf']
The recommended way would be: name = 'blach.pdf' REQUEST = context.REQUEST ob = context[name] return ob.index_html(REQUEST, REQUEST.RESPONSE) Florent -- Florent Guillaume, Nuxeo (Paris, France) CTO, Director of R&D +33 1 40 33 71 59 http://nuxeo.com fg@nuxeo.com