something like this?

http://www.web2py.com/AlterEgo/default/show/32

On May 26, 11:34 am, hcvst <[email protected]> wrote:
> Hi,
>
> I would like to 'stream' results to the browser as they become
> available.
>
> Something like:
> ---
> response.write(lengthy_op(1))
> response.flush()
> response.write(lengthy_op(2))
> response.flush()
> ...
>
> I am now thinking of extending StringIO to write sth like
>
> response.stream(MyStringIO( [ (lengthy_op, 1), (lengthy_op, 2) ] ))
>
> but I don't feel like diving into the file interface and ending up
> with probably messy code
> if there is a solution available already.
>
> As always, thanks for web2py and the great support,
> HC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to