[Zope] Unbuffered Python Scripts

Nicholas Avenell nicholas at evolvingmedia.co.uk
Thu Mar 17 11:56:14 EST 2005


I have a script that generates a really big CSV file, which I'm doing as 
a python script inside Zope. Problem is, at the moment it takes huge 
amounts of memory and time to render, partially because the output is 
buffered before it's sent to the browser.

Is there any way to stop this python script being buffered? Ideally I'd 
like each print statement to be flushed directly to the client, instead 
of returning "printed" at the end.

-- 
Nicholas Avenell
Technical Developer



More information about the Zope mailing list