Re: Response content as generator while debug = true? (Sending intermediate content)

2007-01-18 Thread Ben Bangert
On Jan 17, 2007, at 5:26 PM, Chas Emerick wrote: I'd be perfectly satisfied if pylons/paste/etc were to simply abort the response if an error occurs, and leave me to figure out that I need to copy and paste the debug URL from the console to a new browser window. (Maybe also outputting some

Response content as generator while debug = true? (Sending intermediate content)

2007-01-17 Thread Chas Emerick
Re: http://groups.google.com/group/pylons-discuss/browse_frm/thread/32f4a69cfc4a170f/ I would like to be able to yield intermediate content even when debug is on -- otherwise, testing is not pleasant (yes, I've been spoiled by the interactive stack traces, etc!). Is this possible? If not, I

Response content as generator while debug = true? (Sending intermediate content)

2007-01-17 Thread Chas Emerick
Re: http://groups.google.com/group/pylons-discuss/browse_frm/thread/32f4a69cfc4a170f As mentioned in the referenced post, a generator set as a Response's content (as of pylons 0.9.4.1) while debugging is on will be consumed entirely before any content is sent to the client. Is there any way to

Re: Response content as generator while debug = true? (Sending intermediate content)

2007-01-17 Thread Ben Bangert
On Jan 17, 2007, at 8:12 AM, Chas Emerick wrote: As mentioned in the referenced post, a generator set as a Response's content (as of pylons 0.9.4.1) while debugging is on will be consumed entirely before any content is sent to the client. Is there any way to get around this? I've gotten

Re: Response content as generator while debug = true? (Sending intermediate content)

2007-01-17 Thread Chas Emerick
Yes, I can see the difficulties involved. However, the debugger being returned as the content that was requested when an error occurs is really just a convenience -- there's always the unique debug URL that is piped out to stdout as well. I'd be perfectly satisfied if pylons/paste/etc were to