[Zope] Changing owner of a folder object

Dieter Maurer dieter at handshake.de
Wed Feb 9 16:59:20 EST 2005


Jeff Gentry wrote at 2005-2-7 15:24 -0500:
>If I add a folder in my python code as follows (where users is where I
>wish to create this folder and username is to be the name of the folder):
>
>manage_addFolder(users, username, username)
>
>How do I go about changing the owner of that folder (to the user named by
>the 'username' variable)?
>
>If 'uF' is a handle to the folder object created above, the method:
>
>uF.changeOwnership(username)
>
>fails.

Are you sure you want to change this (executable) ownership?

  It does not directly have an effect on the folder itself
  (but may have an effect on executable objects below
  the folder).

Or are you in fact interested in the "Owner" local role?

-- 
Dieter


More information about the Zope mailing list