On Monday 17 July 2006 19:22, jerojasro wrote: > check this post > http://groups.google.com/group/turbogears/browse_thread/thread/2535a782b1d1 >63a7/d87a4bf9ad3ae26e?lnk=arm#d87a4bf9ad3ae26e > > besides, in the wiki are some hints for handling of files > > as far as I remember, you can decide what type of content to return > passing a proper argument to the @expose decorator >
An often used method for this is to generate the PDF as a file and then redirect the web page to that file. So generate your PDF into a static folder and redirect to that. The advantage of this also becomes apparent when using Apache or Lighttpd as the front end to serve static content. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears -~----------~----~----~----~------~----~------~--~---

