Could someone please tell me how I can return a pdf from a python script? return context.blah.pdf() does not work. thanks
--On Dienstag, 4. Januar 2005 10:44 Uhr -0800 Sam Boggess <sboggess@gmail.com> wrote:
Could someone please tell me how I can return a pdf from a python script? return context.blah.pdf() does not work.
Look at the PloneCollectorNG sources -> asPDF() method. -aj
On Tue, Jan 04, 2005 at 10:44:58AM -0800, Sam Boggess wrote:
Could someone please tell me how I can return a pdf from a python script? return context.blah.pdf() does not work.
that's because you're looking for the "pdf" attribute of the "blah" object. getattr(context, "blah.pdf") should get you the file object... -- Paul Winkler http://www.slinkp.com
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
participants (4)
-
Andreas Jung -
Dieter Maurer -
Paul Winkler -
Sam Boggess