[Zope] object.changeOwnership (con't)

Gilles Lenfant glenfant@bigfoot.com
Thu, 21 Feb 2002 21:04:17 +0100


Hi,

Are there ownership experts here ?

I noticed that in lib/python/AccessControl/Owned.py in the Owned class, =
the "object.changeOwnership(user)"  (line 97) method calls "new =3D =
userInfo(user)" (line 234).

Then userInfo() checks "user.aq_inner.aq_parent" (line 240)

The strange thing is that an user object (from any acl_users) has no =
"aq_inner" nor "aq_parent" attribute. And this raises an AttributeError =
when trying to change ownership.

Did I take a wrong user object type (acl_users.getUser('foo')) or is =
this another bug ?

TIA

--Gilles

Note : the line numbers are for the Owned.py coming with Zope 2.5.0 or =
CVS revision 1.15