Re: progress indicator in a mod_python script

2007-05-18 Thread Larry Bates
Rajarshi wrote: > Hi, I have a web application built using mod_python.Currently it > behaves like a standard CGI - gets data from a form, performs a query > on a backend database and presents a HTML page. > > However the query can sometimes take a bit of time and I'd like to > show the user some f

Re: progress indicator in a mod_python script

2007-05-17 Thread Josh Bloom
Hi Rajarshi, What you probably want to do is break this into multiple parts. When a request comes in to perform a query consider this a new job, give it an ID and set it off and running. Then return an HTML page that knows to keep checking a status URL (based on the ID) every few seconds to see

progress indicator in a mod_python script

2007-05-17 Thread Rajarshi
Hi, I have a web application built using mod_python.Currently it behaves like a standard CGI - gets data from a form, performs a query on a backend database and presents a HTML page. However the query can sometimes take a bit of time and I'd like to show the user some form of indeterminate progres