You have to get your controller action to return a generator<http://docs.python.org/glossary.html#term-generator>...take a look at http://wiki.pylonshq.com/display/pylonsfaq/Streaming+Content+to+the+Browserfor a pretty straightforward example
On Sun, Mar 28, 2010 at 4:44 AM, Charlie Meyer <[email protected]> wrote: > Hi all, > > I'm currently working on a pylons project and I have some controller > actions that take a while to complete (60-90 seconds). Basically, it > involves the user uploading an archive of files that are then processed and > analyzed. I wanted to know if there was a way to incrementally output to the > user the progress of the long running job, either in a text box (or > something similar) or printed as the page slowly loads? I can calculate the > percent complete the job is at any given time, so i would like some way to > feed this information back to the user so it does not appear as if the > application is hanging. Any suggestions or best practices to accomplish this > would be appreciated. > > thanks > > -Charlie > > -- > 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]<pylons-discuss%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/pylons-discuss?hl=en. > -- 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.
