[Zope] Re: Return results immediately but continue processing

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 02 Dec 2002 23:59:51 +0100


VanL wrote:
> Is it possible to return an immediate result to the browser, something 
> that says "Your processing request was received" and then *still* 
> continue processing the query in the background until it completes?

ZopeHelp says:

API Documentation
class Response

     The Response object represents the response to a Zope request.

Methods

...

write(data):

     Return data as a stream

     HTML data may be returned using a stream-oriented interface. This 
allows the browser to display partial results while computation of a 
response to proceed.

     The published object should first set any output headers or cookies 
on the response object.

     Note that published objects must not generate any errors after 
beginning stream-oriented output.

Permission
     Always available


-mj