python - How can I display updating output of a slow script using Pylons? -


I am writing an application in pylons which depends on the output of some system commands, such as the output of the tracerout me command I would like to display because instead of waiting for it to finish it is prepared and then all are displayed together.

I came to know how to access the output of the order given in Python by answering this question:

Now let me tell this information in the browser There is a need to find a way to get it because it is occurring. I was planning to use jQuery's LoadContent () to load the output of a script. The problem is that Pylons controllers use return , so outputs must be completed before submission of the Pillans page and the web server responds to the client with the content.

Is there any way to display the page to the content such as whether it is generated in the pylons or will it be scripted out of the pile? Basically, I'm trying to do something like this:

Pepext Allow to get output without buffers.

To update information immediately on a user's browser, you need JavaScript on the server that is sending the proper AJAX request to your server (Dojo or JQF will make it easy, though they are strictly required There are new answers coming and updating the page - - Without client-side support (and JS + AJAX is the easiest way to get that collaboration), the only server on server server Security is no sensible way.

Then there is a general view: Send a JFF query from the browser, as soon as there is another line in it, the response to the server, JS on the browser update content sends immediately another query, unless The server does not respond with the "All done" marker (eg a "blank" reaction can work for that purpose).


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -