[Zope-dev] Problems with session on ZEO

Gerhard Schmidt estartu at ze.tum.de
Mon Aug 9 02:01:02 EDT 2004


On Wed, Aug 04, 2004 at 11:42:33PM +0200, Dieter Maurer wrote:
> 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...

It seems that it does the Trick. :-)) No systemerror since i`ve done
the change. 

Thanx a Lot 

Bye
    Estartu 

-------------------------------------------------
Gerhard Schmidt       | E-Mail: schmidt at ze.tum.de
TU-München	      |
WWW & Online Services |
Tel: 089/289-25270    |
Fax: 089/289-22253    | PGP-Publickey auf Anfrage 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 540 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20040809/9b94783d/attachment.bin


More information about the Zope-Dev mailing list