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:
http://n2.nabble.com/How-do-you-signal-the-end-of-streaming-content-tp4934275p4934275.html
Sent from the pylons-discuss mailing list archive 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].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.