[Zope-CMF] Re: RE: [Zope-dev] Performance problem in ZOPE 2.5.1, 'getOwner' in /lib/python/AccessControl/Owned.py

Arnar Lundesgaard arnar.lundesgaard@creuna.no
Mon, 9 Sep 2002 10:26:09 +0200


> I *guess* it is code that is testing the truth value of the user
folder
> object.
>
> Does adding this method fix the problem too:
>
>     def __nonzero__(self):
>         return 1

Yes, this seems to work as well.

(I unpatched __len__, added __nonzero__ and restarted)

  Arnar Lundesgaard