Hello, I need to generate some huge PDF-report out of process. So the user sees some waiting screen, while the report is generated. When generation is finished the report is delivered. First I did it with Threads. It was a pain, but the waiting screen worked. Now I do it with ZEO, but the waiting screen doesn't work any more. I'm now finally thinking about a generic product allowing me to do a task out-of-process. Could someone please tell me how to get things done without threads. I have already read http://www.zopelabs.com/cookbook/1058719806 . But the line pdf = ReportGen().createReport(report()) is a bit cryptic to me. Is someone interested in helping me with this product? With kind regards Florian Reiser
Florian Reiser wrote at 2004-6-2 14:46 +0200:
I need to generate some huge PDF-report out of process. So the user sees some waiting screen, while the report is generated. When generation is finished the report is delivered. First I did it with Threads. It was a pain, but the waiting screen worked. Now I do it with ZEO, but the waiting screen doesn't work any more.
I'm now finally thinking about a generic product allowing me to do a task out-of-process.
Maybe, there is already such a products (since years). Try to find "LocalProc" and look into it... -- Dieter
Hello Dieter, thanks for your tip with LocalProc. But I am working on windoze and don't have a shell where I set a & behind the command and send it into the background. My task is simply the following: - User starts report generation and gets a screen saying: "Computing, please wait" - Every ten seconds the browser refreshes. If zope is finished computing the report, then it delivers the resulting pdf-file, else it shows the screen again. - The report code is stored in the ZODB completely. How do I do this without threads? I have set up ZEO and don't want to cope with that beast once again. But I will do if its necessary. With kind regards Florian Reiser -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Wednesday, June 02, 2004 11:59 PM To: florian.reiser@ra-bc.de Cc: zope@zope.org Subject: Re: [Zope] Product for Out-of-Process jobs Florian Reiser wrote at 2004-6-2 14:46 +0200:
I need to generate some huge PDF-report out of process. So the user sees some waiting screen, while the report is generated. When generation is finished the report is delivered. First I did it with Threads. It was a pain, but the waiting screen worked. Now I do it with ZEO, but the waiting screen doesn't work any more.
I'm now finally thinking about a generic product allowing me to do a task out-of-process.
Maybe, there is already such a products (since years). Try to find "LocalProc" and look into it... -- Dieter
Florian Reiser wrote at 2004-6-7 15:32 +0200:
... But I am working on windoze and don't have a shell where I set a & behind the command and send it into the background. My task is simply the following: ...
Sorry, I cannot help you with Windows questions... -- Dieter
participants (2)
-
Dieter Maurer -
Florian Reiser