Geoff, Thanks for your answer.
I usually store a database connection in my sessions. How can I make the database connection pickable? Are regular classes pickable or I have to add custom code? Sessions expire because of this or they're just not saved to disk? Thanks again. Ed. <cita quien="Geoffrey Talvola"> > Eduardo Elgueta wrote: >> Hi All, >> >> I have several webkit servers (XP, Linux and Win2K) and in >> all of them I >> get the following traceback every two hours or so (this one is from a >> Win2K server): >> >> None >> >> Traceback (most recent call last): >> File ".\WebKit\SessionFileStore.py", line 78, in __setitem__ >> self.encoder()(item, file) >> File "D:\Python22\Lib\copy_reg.py", line 58, in _reduce state = >> base(self) TypeError: connect() argument 1 must be string, not >> Connection >> >> What on earth is this? > > This looks like an error when the session code is attempting to pickle the > session to disk. > > Are you storing something unusual in your session? A database connection > object perhaps? > > You can't put anything unpicklable into your sessions. > > - Geoff > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN's Audience Survey. > Help shape OSDN's sites and tell us what you think. Take this > five minute survey and you could win a $250 Gift Certificate. > http://www.wrgsurveys.com/2003/osdntech03.php?site=8 > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > -- Eduardo Elgueta Senior Consultant Navix emial: [EMAIL PROTECTED] phone: +56 (2) 315-7608 mobile: +56 (9) 821-0033 web: www.navix.cl ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss