> 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].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.