Brian, Is it possible to replace the implementation of "print" in the appropriate scopes with something that uses StringIO for output, or maybe redirect stdio to an in-memory stream? This way you'll have the complete output in memory by the end of your controller's method, and "return" it in the response. HTH,
Sergey. Brian wrote: > Sorry I should have been more clear..The script generate many many > lines of prints, and the results are nested among many classes and > functions that get called, so it'd be difficult to do a simple return > Response() to capture all of the output generated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
