[Zope] Multiple published data from an object

hinsen@dirac.cnrs-orleans.fr hinsen@dirac.cnrs-orleans.fr
Wed, 22 May 2002 12:23:15 +0200


I am rather new to Zope, which doesn't stop me from starting with a
rather non-typical project: integrating a Python application into a
Zope server to make it accessible via the Web. Until now that works
much better than I expected, and I have found the answers to all
questions in the documentation... until now.

I want an object published with two representations: a standard HTML
page, plus a data stream that causes the browser to launch some
external program. I have managed to do both separately (the latter
using RESPONSE.setHeader() and  RESPONSE.write()), but at the moment
the user has to press a button on the HTML page in order to start the
second data stream, which is not very convenient. I tried calling
RESPONSE.write() twice, but got only chaotic results. Any ideas?

Konrad.