[ZCM] [ZC] 794/ 1 Request "Error in AccessControl/Owned.py/changeOwnership"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin@zope.org
Wed, 05 Feb 2003 04:37:19 -0500


Issue #794 Update (Request) "Error in AccessControl/Owned.py/changeOwnership"
 Status Pending, Zope/bug+solution medium
To followup, visit:
  http://collector.zope.org/Zope/794

==============================================================
= Request - Entry #1 by Anonymous User on Feb 5, 2003 4:37 am

Imagine you have a folder A and a subfolder A/B.

A's owner is user1, B's owner is user1 as well.

user2 should become owner of A but not of A/B.

But unchecking the "Also take ownership of all sub-objects" option doesn't work, user2 becomes owner of A/B as well.

Reason:

There's a little bug in AccessControl/Owned.py/changeOwnership:

The else part in the for loop changes ownership of children although "recursive" isn't set.
You just don't need the else part, and it works as desired.





==============================================================