Re: [Zope-dev] unbuffered html from external method

2000-11-14 Thread Dieter Maurer

Andy McKay writes:
 > 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.
"self.REQUEST.RESPONSE.write()"

Be aware of the restriction of "HTTPResponse.HTTPResponse.write"!


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] unbuffered html from external method

2000-11-13 Thread Morten W. Petersen

[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

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )