[Zope] Progress information for long running process
Ausum Studio
ausum_studio@hotmail.com
Tue, 8 Apr 2003 18:21:47 -0500
Use streamed strings at every step completion:
Example (using a pythonscript):
statement 1
statement 2
context.REQUEST.response.write("statement2, done")
statement3
context.REQUEST.response.write("statement3, done")
Just take into account that when you use this, all what your page will show
is what it was printed out by the response object. If you're willing to use
html, make sure to include the closing tags within each response string, as
much as possible.
To perform a redirection at the moment the stream ends (the messages page
gets finally rendered), you may use a simple javascript call placed at the
bottom (embeded as the last streamed string), because response.redirect(URL)
will not work
Ausum.
----- Original Message -----
From: "Eddie Mönch" <Moench@Ontoprise.DE>
To: <zope@zope.org>
Sent: Tuesday, April 08, 2003 10:13 AM
Subject: [Zope] Progress information for long running process
> Hi All,
>
> Could someone help with this problem:
> I have a long running process performed with an external method. Long
> means > 30 min. At the and I'm giving back HTML code to the calling
> object. What I need now is same sort of progress information on the web
> page (e.g. Processing step 50 out of 100). Has anyone an idea how to do
> this?
>
> Thanks a lot!
>
> --
> Eddie.
>
>
>
> _______________________________________________
> 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 )
>