Hello,

I'm new to pylons and have been trying to figure this out but not
having much luck.

I have a set of existing python scripts that 'print' output to the
screen when you run them.  What's the easiest way to convert these
scripts such that they can be called from within a pylon controller
and have the output sent to a webpage?

I should note that this library of existing scripts is quite large,
and attempting to modify them (ie change prints to something else)
would be a bit of work.  I DID attempt to go the route of making a
controller return a generator that invokes my initial function,
however this quickly turned into a mess since generators may not
'return' values, and many of the classes used in these scripts
regularly return values and results of function calls.

I'm almost wonder if launching my script via another thread and piping
the output to a file, and having a generator do a 'tail' of sorts on
the resulting file and do 'yields' is the best/only way?

Any ideas or examples on something similar?


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to