[Zope] ending a chunked http stream

seb bacon seb@jamkit.com
05 Feb 2002 15:27:57 +0000


I'm writing some things in a stream to the browser, to keep the user
informed that stuff is happening while a long-winded process unfolds.

When that process has ended, I want to publish a DTML template as a new
page.  How can I end the HTTP stream and start a new one?

     def someFunction(self, REQUEST):
        response = REQUEST.RESPONSE
        # do something longwinded
        response.write("please wait")
        # do something else longwinded

        # now I want the following DTML Method to get displayed
        return self._report_template(self, REQUEST)

seb