Commit 1f8ea369 authored by Chris McDonough's avatar Chris McDonough

changeOwnership method of Owned mixin failed when in "non-recursive" mode when...

changeOwnership method of Owned mixin failed when in "non-recursive" mode when trying to set child._owner = child._owner.  Why it was doing this I have no idea.  I changed it to set child._owner = new.  The trunk version of this method is significantly different than the 2.2.X branch version in other ways, so I can't make an analogous change to the 2.2.X branch.
parent 9f381617
......@@ -85,8 +85,8 @@
__doc__='''Support for owned objects
$Id: Owned.py,v 1.6 2000/10/12 16:55:21 amos Exp $'''
__version__='$Revision: 1.6 $'[11:-2]
$Id: Owned.py,v 1.7 2000/11/09 14:14:09 chrism Exp $'''
__version__='$Revision: 1.7 $'[11:-2]
import Globals, urlparse, SpecialUsers, ExtensionClass, string
from AccessControl import getSecurityManager
......@@ -176,7 +176,7 @@ class Owned(ExtensionClass.Base):
child.changeOwnership(user, 1)
else:
# make ownership explicit
child._owner=child._owner
child._owner=new
if old is not UnownableOwner:
self._owner=new
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment