[Zope-CMF] fixing ownership after site move
Sam Brauer
sam@webslingerz.com
Mon, 14 Jul 2003 09:49:36 -0400
I'm curious why you had to make your change.
The script seemed to work fine for me, but maybe there was a problem I
didn't notice. What happened when you ran it before your change?
Thanks,
Sam
suresh_vv wrote:
> --- 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
>
>
>
>
>
> _______________________________________________
> Zope-CMF maillist - Zope-CMF@zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
--
Sam Brauer
Systems Programmer
sam@webslingerZ.com