From: Max Ischenko <max@ma...> - 2003-06-06 10:45:25
I've got a problem, related to session handling.
Clients are reporting this problem both on IIS and built-in http server,
while I can't reproduce it on my dev. machine (using built-in http
server). Platform is Windows2K, IE 6.0.
The problem is: when the WebKit is restarted the session data is not
restored. My code stores two variables in session: first a simple
old-style class instance and another is a bunch of new-style classes
which defines a __slots__ AND a __getstate__.
Client reports that after restarting the WebKit session data is lost and
they sometimes (not always!) got an error[*]. In any case, whether they got
an error or not, the session data is not restored.
But, it works fine on my dev. machine. I tested it a lot of times. I
even manually try to pickle/unpickle session data -- it works without
Any guesses about what when wrong (even rather wild) are accepted and
* - Error:
Error saving session to disk: 20030605121416-332fd5ac6c27d06b89ef9ff0b0062d1f
[Thu Jun 05 12:37:08 2003] [error] WebKit: Error while executing script None
Traceback (most recent call last):
File ".\WebKit\SessionFileStore.py", line 78, in __setitem__
File "C:\Python22\lib\copy_reg.py", line 68, in _reduce
dict = getstate()
TypeError: a class that defines __slots__ without defining
__getstate__ cannot be pickled