[Zope] Displaying pdf

Peter Bengtsson peter at fry-it.com
Thu Dec 1 06:18:24 EST 2005


On 12/1/05, Chris Withers <chris at simplistix.co.uk> wrote:
> Peter Bengtsson wrote:
> > pdffile = getattr(context, 'some.pdf')
> > return pdffile
>
> I think you'd have to set a content-disposition header if you did that...
>
Surely the File object that this 'some.pdf' is has all of this taken
care of in its index_html()

> cheers,
>
> Chris
>
> --
> Simplistix - Content Management, Zope & Python Consulting
>             - http://www.simplistix.co.uk
>
>


--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com


More information about the Zope mailing list