In my app I'm streaming a csv file with the appropriate content headers, and
it must be treated differently than streaming content because it works. I
just tried with your example and got the same results you did, so hopefully
someone else on the list knows the answer.


On Mon, Jan 3, 2011 at 8:36 AM, nh2 <[email protected]> wrote:

> > This works for me with and without debug. Is it not working for you in
> > Pylons 1.0?
>
> No, it doesn't.
>
> Steps to reproduce:
>
> virtualenv --no-site-packages -p python2.6 pylonsstreamtest
> cd pylonsstreamtest
> source bin/activate
> pip install pylons
> paster create -t pylons helloworld
> cd helloworld
> paster controller hello
> paster serve --reload development.ini
>
> Put this into helloworld/controllers/hello.py:
>
>        def stream(self):
>                def output():
>                        while True:
>                                yield "ping\n"
>                                time.sleep(1)
>                return output()
>
> Then curl http://localhost:5000/hello/stream
>
> If debug = true, curl shows no output, if debug = false, it does.
>
> Did you disable app = ErrorHandler(app, global_conf,
> **config['pylons.errorware']) in config/middleware.py? That makes it
> work regardless of debug, but this global change is of course still
> not what we want.
>
> --
> 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.

Reply via email to