For the poster of the LDAP connection question about storing in a session, you can't do it because LDAP connections aren't pickleable. BTW, what is the logic for forcing everything that gets stored in a session be pickled? I have built a lot of web applications and rarely do I want that functionality. SHouldn't it be an optional flag?
Mike On Thursday, October 10, 2002, at 03:02 PM, Ian Bicking wrote: > On Thu, 2002-10-10 at 02:58, Matthias Opitz wrote: >> Erik gave me an idea with pickling. Isn't that like dumping and >> recreating >> an object to a file / session? Could that be a solution? Also an >> independend >> TradingSystem pool would be nice. Has anyone done something like that >> before? > > The session is already pickling your data. If you're getting a crash, > it's probably because there's something unpickleable in the data -- > things like network connections and file handles can't be pickled. If > you are pickling a class, generally you have to be sure that all its > instance variables are pickleable. There are ways you can write your > class to be pickleable, though -- the pickle documentation mentions > some > of these. > > Ian > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
