[Zope-dev] Problems with session on ZEO

Dieter Maurer dieter at handshake.de
Wed Aug 4 17:42:33 EDT 2004


Gerhard Schmidt wrote at 2004-8-3 09:34 +0200:
> ...
>  Module Products.Sessions.SessionDataManager, line 94, in getSessionData
>  Module Products.Sessions.SessionDataManager, line 183, in _getSessionDataObject
>SystemError: error return without exception set

I had an issue in the same line:

  it called an incredibly expensive "__len__" function.

Maybe, in your case, it calls some broken "__len__" function...

I replaced the line by:

        # hasattr hides conflicts
        # DM 2004-07-09: and boolean tests may be very expensive!
        if getattr(ob, '__of__', None) is not None and getattr(ob, 'aq_parent', None) is not None:

See whether this helps you...

-- 
Dieter


More information about the Zope-Dev mailing list