I just tried this code as well and it gave me the same result. The page did not show any of the text until the whole request was finished. I am using the paster serve server.
Could it be that I have a version that is before Ben removed all the explicit list() calls? If so, what is the easy_install command to run to upgrade to the right version? Thanks, Paul jose wrote: > I just gave this a try and it didn't give me the result I was > expecting. The code I tried is: > > def index(self): > req = request.current_obj() > def long_func(): > env = req.environ > yield 'I am starting now' > #simulate a very long process > for i in range(10000): > print i > yield 'I should be finishing now' > res = Response() > res.content = long_func() > return res > > > return the Response, meaning that all the content is sent all at once > > > rather then incremental. > > > Thanks for any and all help --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
