[Zope] return a pdf from a python script

Dieter Maurer dieter at handshake.de
Wed Jan 5 14:07:17 EST 2005


Sam Boggess wrote at 2005-1-4 10:44 -0800:
>Could someone please tell me how I can return a pdf from a python 
>script?  return context.blah.pdf() does not work.

	  return getattr(content, 'blah.pdf').index_html(
		 container.REQUEST,
		 container.REQUEST.RESPONSE,
		 )

-- 
Dieter


More information about the Zope mailing list