Hi folks, I need to compute large pdf-files on the fly. Can somebody plz tell me how I can start the asynchronous computation of the pdf, display the user a waiting form and show him the results after the asynchronous computation has finished. Regards Florian Reiser
--On Mittwoch, 16. Juli 2003 14:36 Uhr +0200 Florian Reiser <florian.reiser@ra-bc.de> wrote:
Hi folks,
I need to compute large pdf-files on the fly. Can somebody plz tell me how I can start the asynchronous computation of the pdf, display the user a waiting form and show him the results after the asynchronous computation has finished.
I would dispatch all long-running actions to a dedicated instance of some "worker" class that gets a request to "do something", starts this job a thread or external process and keeps track of the progress. Such a "worker" can handle multiple requests at the same time so you return an ID to the caller. Then you can create your own "please wait" page based on the progress information returned from the "worker" instance..,...that's the theory :-) -aj
Hi Andreas, thanks for your suggestion, could you plz give me a point to start from I want to save the results of the thread in a session variable. Could you plz give me a fake example? Regards Florian Reiser -----Ursprüngliche Nachricht----- Von: Andreas Jung [mailto:andreas@andreas-jung.com] Gesendet: Mittwoch, 16. Juli 2003 14:51 An: florian.reiser@ra-bc.de; 'Zope-allgemein' Betreff: Re: [Zope] asynchronous task --On Mittwoch, 16. Juli 2003 14:36 Uhr +0200 Florian Reiser <florian.reiser@ra-bc.de> wrote:
Hi folks,
I need to compute large pdf-files on the fly. Can somebody plz tell me how I can start the asynchronous computation of the pdf, display the user a waiting form and show him the results after the asynchronous computation has finished.
I would dispatch all long-running actions to a dedicated instance of some "worker" class that gets a request to "do something", starts this job a thread or external process and keeps track of the progress. Such a "worker" can handle multiple requests at the same time so you return an ID to the caller. Then you can create your own "please wait" page based on the progress information returned from the "worker" instance..,...that's the theory :-) -aj
Florian Reiser wrote at 2003-7-16 14:36 +0200:
I need to compute large pdf-files on the fly. Can somebody plz tell me how I can start the asynchronous computation of the pdf, display the user a waiting form and show him the results after the asynchronous computation has finished.
A long time ago, someone posted an announcement for "LocalProc". Maybe, this product helps you. Dieter
Hi Dieter, do you know the hp of the product? I can't find it on zope.org and on sourceforge.net. Regards Florian Reiser -----Ursprüngliche Nachricht----- Von: Dieter Maurer [mailto:dieter@handshake.de] Gesendet: Mittwoch, 16. Juli 2003 21:34 An: florian.reiser@ra-bc.de Cc: 'Zope-allgemein' Betreff: Re: [Zope] asynchronous task Florian Reiser wrote at 2003-7-16 14:36 +0200:
I need to compute large pdf-files on the fly. Can somebody plz tell me how I can start the asynchronous computation of > the pdf, display the user a waiting form > and show him the results after the asynchronous computation has > finished.
A long time ago, someone posted an announcement for "LocalProc". Maybe, this product helps you. Dieter
Florian Reiser wrote at 2003-7-17 08:07 +0200:
do you know the hp of the product? I can't find it on zope.org and on sourceforge.net.
It has been announced as <http://www.zope.org/Members/sspickle/LocalProc> Google should have found it. Dieter
Google does find it, Zope.org does not seem to have it any longer. On Thu, 17 Jul 2003, Dieter Maurer wrote:
Florian Reiser wrote at 2003-7-17 08:07 +0200:
do you know the hp of the product? I can't find it on zope.org and on sourceforge.net.
It has been announced as
<http://www.zope.org/Members/sspickle/LocalProc>
Google should have found it.
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Andreas Jung -
Dennis Allison -
Dieter Maurer -
Florian Reiser