[Zope-dev] unbuffered html from external method

Morten W. Petersen morten@esol.no
14 Nov 2000 00:51:37 +0100


[Andy McKay]

| Is it possible to print unbuffered html output to the user from an external
| method. It looks to me like I can't, output occurs upon the return and I
| cant see a way of getting around that.

Try hacking the BaseResponse, located in lib/python/ZPublisher.
(implement the flush method, add some logic here and there to
handle responses that are flushed).

Or maybe just override the RESPONSE class, and use RESPONSE.stdout ..

-Morten