i can't get this to work with 0.9.5 & i have debug set to false ??

On Aug 17 2006, 9:06 am, "benchline" <[EMAIL PROTECTED]> wrote:
> That did it.  After uncommenting that line and restarting the paster
> server the following function (slightly modified from the previous
> example to send all items to the browser) worked as expected sending
> eachyieldstatement output to the browser immediately.
>
>     def test(self):
>         import time
>         req = request.current_obj()
>         def long_func():
>             env = req.environ
>            yield'I am starting now'
>             for i in range(100):
>                yield"<br>%s" % i
>                 time.sleep(.1)
>            yield'I should be finishing now'
>         res = Response()
>         res.content = long_func()
>         return res
>
> Thanks Ben.
>
> Paul
>
> Ben Bangert wrote:
> > I should mention that due to how debug mode catches the info
> > should an exception be caught, you can only send a stream when debug
> > mode is off.
>
> > Try uncommenting the
> > set debug = false
>
> > At the bottom of the development.ini file, and let me know if the
> > iterator works.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to