[Zope-CMF] Changing ownership of objects

Gilles Lenfant gilles@pilotsystems.net
Wed, 13 Feb 2002 20:48:16 +0100


Hi,

I'm hardly trying to make a script that gives the current Member the
ownership of all objects that are recursively included in his member folder.
Even those that are coming from a copy/paste operation.

context.portal_membership.checkPermission('Take ownership', context)
--> 1
context.userCanTakeOwnership()
--> 0

Which one is buggy ? (context is a Portal Folder of the member who runs the
script)

In addition running this in a script (with a Manager proxy) raises the
authentication box !!!!!

context.manage_takeOwnership(recursive=1)

My config : Zope 2.5.0 on Debian + CMF 1.2

Thanks in advance for any clue !!!

--Gilles