[Web-SIG] Emulating req.write() in WSGI

2010-06-28 Thread Aaron Fransen
One of the nice things about mod_python is the req.write() function. Although I realize it's somewhat of an abuse to the http protocol, it's handy being able to periodically update the client browser with a status message for a long-running job. So handy in fact that I have a number of applicatio

Re: [Web-SIG] Emulating req.write() in WSGI

2010-06-28 Thread Aaron Fransen
On Mon, Jun 28, 2010 at 3:11 PM, P.J. Eby wrote: > At 01:01 PM 6/28/2010 -0600, Aaron Fransen wrote: > >> One of the nice things about mod_python is the req.write() function. >> >> Although I realize it's somewhat of an abuse to the http protocol, it's >>

Re: [Web-SIG] Emulating req.write() in WSGI

2010-06-29 Thread Aaron Fransen
On Mon, Jun 28, 2010 at 5:42 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > On 29 June 2010 05:01, Aaron Fransen wrote: > > One of the nice things about mod_python is the req.write() function. > > One thing I should warn you about req.write() in Apache is that

Re: [Web-SIG] Emulating req.write() in WSGI

2010-06-29 Thread Aaron Fransen
On Tue, Jun 29, 2010 at 7:37 AM, Aaron Fransen wrote: > > > On Mon, Jun 28, 2010 at 5:42 PM, Graham Dumpleton < > graham.dumple...@gmail.com> wrote: > >> On 29 June 2010 05:01, Aaron Fransen wrote: >> > One of the nice things about mod_python is the req.write(

Re: [Web-SIG] Emulating req.write() in WSGI

2010-06-30 Thread Aaron Fransen
On Tue, Jun 29, 2010 at 6:17 PM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > On 30 June 2010 02:14, Aaron Fransen wrote: > > Couple more things I've been able to discern. > > > > The first happened after I "fixed" the html code. Originally un

Re: [Web-SIG] Emulating req.write() in WSGI

2010-06-30 Thread Aaron Fransen
On Wed, Jun 30, 2010 at 6:26 AM, Graham Dumpleton < graham.dumple...@gmail.com> wrote: > On 30 June 2010 21:35, Aaron Fransen wrote: > > > > > > On Tue, Jun 29, 2010 at 6:17 PM, Graham Dumpleton > > wrote: > >> > >> On 30 June 2010 02:14, A

Re: [Web-SIG] Emulating req.write() in WSGI

2010-07-05 Thread Aaron Fransen
tand the danger of having a long-running web process (hence the reason I have a lot of virtual machines in the live environment using mod_python right now) but unfortunately it's something I don't seem to be able to work around at the moment. Thanks to all. On Wed, Jun 30, 2010 at 5:19 PM, Grah

Re: [Web-SIG] Emulating req.write() in WSGI

2010-07-07 Thread Aaron Fransen
Well, just in case this helps anyone, I managed to get it working on most of the current browsers. My first problem was a missing import statement (definite "DOH!" moment there), but once that was resolved Firefox steadfastly refused to co-operate. The fix was to use a boundary indicator then spe