[Zope] Showing progress for long running tasks
Small Business Services
toolkit at magma.ca
Fri Jun 11 07:43:02 EDT 2004
From: "Florian Schulze" <florian.proff.schulze at gmx.net>
> I want to write a function which invokes wget for a given URL. Now this
> can take quite some time, how can I provide some progress indicator? I
> don't think it's practical to stream data to the browser until the
> donwload is complete, so I need some way to check back on the progress
> every time a special page is requested. So the question is, how can I
> start a process in the background and check back on it ('s stdout)
> whenever requested?
> I'm using Zope 2.7.0 and Plone 2.0.3.
One possible solution: have your background process write out status
messages to an object in your zope site. You can then use a simple url to
the object to read the latest status.
Jonathan
More information about the Zope
mailing list