I think IE needs at least 256 bytes before starting to show something from the output, so it might be a browser thing.
If you want to launch a background thread, you can have a look at the WebUndo package.. which will detach from the current request, and you could always poke the progress through Ajax requests. WebUndo is on pypi.python.org Hope this helps! Alexandre Le 20 avr. 2010, 7:35 PM, "jazg" <[email protected]> a écrit : In particular, I want to trigger a long process by going to a page, without having to wait for the process to finish. I thought I could do this: def page(self): def stream(): yield "content" long_process() return stream() But it doesn't exactly work. IE doesn't show "content" until after long_process finishes. Firefox shows it, but continues to show "Transferring data". I tried response.content_type = len("content") but it doesn't seem to have any effect. What else can I do? ------------------------------ View this message in context: How do you signal the end of streaming content?<http://n2.nabble.com/How-do-you-signal-the-end-of-streaming-content-tp4934275p4934275.html> Sent from the pylons-discuss mailing list archive<http://n2.nabble.com/pylons-discuss-f1595796.html>at Nabble.com. -- 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.
