Long cgi page

Dave Benjamin ramen at lackingtalent.com
Mon Oct 13 21:21:16 EDT 2003


In article <3tGdnV9ZFdhZ0BaiRTvUpA at speakeasy.net>, A.M. Kuchling wrote:
> On Mon, 13 Oct 2003 18:35:44 +0100, 
> 	Simon Faulkner <news at titanic.co.uk> wrote:
>> Is there any way of flushing the first half of the page out before the
>> calculation starts?
> 
> You're better off using a redirect.  On the inital request, run the
> calculation in a subprocess or a subthread and return a brief page that says
> "Please wait...".  This page should contain a <META HTTP-EQUIV="Refresh">
> element that will reload the page in some suitable time span.  On reloading,
> the application should check if the computation is done and either return
> the results or another "Please wait" page.

I don't know how to translate this to Quixote, but another way to do this
would be to use an HTTP refresh header, which has the additional advantage
that it's not strictly limited to HTML.

Just a thought,
Dave

-- 
.:[ dave benjamin (ramenboy) -:- www.ramenfest.com -:- www.3dex.com ]:.
: d r i n k i n g   l i f e   o u t   o f   t h e   c o n t a i n e r :




More information about the Python-list mailing list