[Zope-DB] How to send a 'still working' message ?

Steve Spicklemire steve@spvi.com
Wed, 17 Apr 2002 12:09:32 -0500


You might look at LocalProc:

http://www.zope.org/Members/sspickle/LocalProc

it has a "background" option to run long running processes.

-steve


On Wednesday, April 17, 2002, at 09:14 AM, Emmanuel Courcelle wrote:

> Hello.
>
> I have an external python procedure, with some code like this:
>
> for p in some_list:
>     context.zsql_request1(p...)
>     context.zsql_request2(p...)
>     context.zsql_request3(p...)
>
> There are about 10 iterations or more, and each iteration takes about
> 5 to 10 seconds. So, it would be nice if I could send an html page
> with some message like:
>
> 'Now working on iteration %i...' % p
>
> and of course another message would be displayed at each iteration.
> But how can I do this ???
> I need some sort of unbuffered output from my procedure, but I do not
> know how to do this.
>
> Thanks in advance,
>
> E.C.
>
>
> --
> Emmanuel COURCELLE                   =
emmanuel.courcelle@toulouse.inra.fr
> L.B.M.R.P.M. (C.N.R.S.-I.N.R.A.)     tel (33) 5-61-28-54-50
> B.P.27 - 31326 CASTANET TOLOSAN Cedex
> ------
> Je voudrais etre ce vaurien, qui fera d=E9railler ton train-train
> http://perso.libertysurf.fr/dabhia/portrait/dikes.htm
>
>
> _______________________________________________
> Zope-DB mailing list
> Zope-DB@zope.org
> http://lists.zope.org/mailman/listinfo/zope-db