Re: response.unbuffer

"Jonathan Ellis" <[email protected]> Mon, 26 Feb 2007 09:07:46 -0800
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
it looks like you're trying to unbuffer _and_ set a cookie.  you can't
do that on the same page.

On Mon, 26 Feb 2007 11:55:00 +0100, schnelte-sb41XHKw7bdFq/[email protected] said:
> Hi there,
> 
> I have a problem with the use of response.unbuffer and flush If wrote a 
> small .spy Page that starts a calculation on the server that last few 
> seconds. To show some data while the calculation is running I tried to 
> use respose.unbuffer().
> The data is shown while the page is not loaded completly but when the 
> spy page is procesed completlty i get the following exception. If I 
> dont use the response.unbuffer() there is no exception.
> Any Ideas?
> 
> Tnx!
> 
> Matthias
> 
> Spyce exception
> File:   d:\development\spyce\www\executeSequences.spy
> Message:
> 
> Exception: headers already sent
> 
> Stack:  C:\Programme\spyce-2.1\spyceCmd.py:128, in addHeader:
> 
> 
> if self.headersSent: raise Exception, 'headers already sent'
> 
> C:\Programme\spyce-2.1\modules\response.py:99, in addHeader:
> 
> 
> self._response.addHeader(type, data, replace)
> 
> C:\Programme\spyce-2.1\modules\cookie.py:40, in set:
> 
> 
> self._api.getModule('response').addHeader('Set-Cookie', text)
> 
> C:\Programme\spyce-2.1\modules\session.py:259, in finish:
> 
> 
> self._api.getModule('cookie').set('sessionid', self.sessionid, 
> expire=self.expire, path=self.path)
> 
> C:\Programme\spyce-2.1\spyce.py:626, in _finishUserModules:
> 
> 
> mod.finish(theError)
> 
> 
> 
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Spyce-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/spyce-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV