[Zope] How to get the owner of an object?

Borislav borislavd@gmx.net
Tue, 10 Sep 2002 14:36:39 -0500


Jerome Alet wrote:
> ownerid = None
> ownerinfo = object.owner_info()
> if ownerinfo is not None :
>         # at least /Control_Panel/Products[/*] doesn't satisfy the following test
>         if hasattr(ownerinfo, "has_key") and ownerinfo.has_key('id') :
>                 ownerid = ownerinfo['id']

This solves the problem. Thanks.

Just curious, where is 'owner_info' documented? I did a search in the 
Zope online help and found no matches.

--Borislav