Re: response.unbuffer
schnelte-sb41XHKw7bdFq/[email protected] Mon, 05 Mar 2007 11:24:53 +0100
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Jonathan, hmm, you are right. I do set a cookie. Well, actually it's not me who wants to set the cookie. It's the session module that wants to set a cookie to store the sessionId. Can I avoid this somehow? For example pass the sessionId in the URL? Tnx in advance. Matthias > 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