[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Owned.py:1.15.10.3
Brian Lloyd
brian@zope.com
Fri, 8 Mar 2002 11:06:14 -0500
Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv15224
Modified Files:
Tag: Zope-2_5-branch
Owned.py
Log Message:
Fix bug 236 to get Jerome Alet off of my back :)
=== Zope/lib/python/AccessControl/Owned.py 1.15.10.2 => 1.15.10.3 ===
if new is None: return # Special user!
old=aq_get(self, '_owner', None, 1)
- if old==new: return
+
if old is UnownableOwner: return
for child in self.objectValues():
@@ -116,7 +116,7 @@
# make ownership explicit
child._owner=new
- if old is not UnownableOwner:
+ if (old != new) and (old is not UnownableOwner):
self._owner=new
def userCanTakeOwnership(self):