How to prevent a web client from timing out
Steven D. Arnold
stevena at permanent.cc
Mon Jun 5 11:34:37 EDT 2000
At 03:07 PM 6/5/2000 +0000, aiglauer wrote:
>Not a purely python question, but.....
>
>Can I rig it so that the calculation process will still complete and
>write its output to a file so that I can use it later? (Writing to a
>file is not a prob - preventing the thing getting slapped is).
If you are producing a report that is basically the same every time, you
might have a cron job do the report every morning at 3 am and then simply
send a cached copy to the user. That way, the report should load almost
instantaneously.
If you need to be able to do a fresh report every time, you might simply
email the report to the user. Excel can read HTML, so if you send the file
with the correct MIME type and extension, the user can double-click it and
it will open into Excel. You could also have it open to a web browser, but
for your app, it sounds as if Excel might be more useful.
steve
--
Steven D. Arnold Que quiero sera stevena at permanent.cc
"Fear: The best way out is through." -- Helen Keller
More information about the Python-list
mailing list