[Zope-CMF] fixing ownership after site move

suresh_vv sureshvv@hotmail.com
Mon, 14 Jul 2003 11:54:49 -0000


--- In zopeCMF@yahoogroups.com, Sam Brauer <sam@w...> wrote:

Thanks for the script. It works.

But I had to replace the line:

<      ownerid = obj.owner_info()['id']

with this:

>    users_role_list = obj.get_local_roles()
>    for role_list_item in users_role_list:
>        ownerid, role_list = role_list_item
>        if 'Owner' in role_list:
>            break