Hallo,
Kevin Dahlhausen hat gesagt: // Kevin Dahlhausen wrote:
> I'm running into trouble when developing - as webware restarts when
> seeing a changed class it writes the session data out to disk. Since I
> have my SQLObject 'User' in session an exception is thrown about not
> being able to write out 'thread lock'. Actually, I assume it's the
> SQLObjects.
Are you sure it is necessary to put SQLObjects into the session? Every
SQLObject could be recreated from the "id" (or whatever primary key
you use) with something like
userid = self.session().value("UserID", None)
if userid:
u = User(userid)
# or for newer SQLObjects:
# u = User.get(userid)
As SQLObjects contain a database connection, I'd guess it's never
possible to make them pickleable, which would is required for session
storage. The "UserID" however is a simple int value normally, so can
get pickled without problems.
Ciao
--
Frank Barknecht _ ______footils.org__
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss