[Zope] Help : changeOwnership
Luca Olivetti
luca@wetron.es
Sat, 07 Dec 2002 00:00:42 +0100
Pascal Romon wrote:
> 2) others are accepted by Zope, like -- stupid --
> changeOwnership(username)
> but upon execution of /.../object/chown?username=blahblah
> I get after typing in the identity & password
> "You are not authorized to access this resource.
> Username and password are not correct. "
> (either as manager or as the user involved).
I may be wrong, but what I do is assign a local role of 'Owner' for
username (in fact for what I do I don't even need to change ownership) e.g.:
## beware this deletes all existing local roles
object.manage_delLocalRoles([ user for user,roles in
object.get_local_roles() ])
object.manage_setLocalRoles(username, ['Owner'])
--
Luca Olivetti