[Zope-dev] Session concurrency problem

Dieter Maurer dieter at handshake.de
Wed Jan 30 13:26:46 EST 2008


Stephan Richter wrote at 2008-1-30 08:45 -0500:
> ...
>1. The data's __dict__ returns an empty dictionary. When you access an 
>attribute directly, though, the data can be seen. This symptom can be 
>reliably reproduced.

This is normal for persistent objects.

  When a persistent object is in Ghost state, its "__dict__" appears
  to be empty (it is empty).

  When you access a non special attribute, the object is unghosted
  and then "__dict__" is filled in.

>2. Sometimes, the session package data does not have the data in it and fails 
>with a key error. This happens maybe 1 in 50 times and I have not reliably 
>reproduced this problem.

What is "session package data"?



-- 
Dieter


More information about the Zope-Dev mailing list