[Zope-dev] unbuffered html from external method

2000-11-13 Thread 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.

(I have a very long running and expensive external method, I'd like to print
out status to the user)

TIA.

--
  Andy McKay, Developer.
  ActiveState.


___
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 )