[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Owned.py:1.11.16.3

Matthew T. Kromer matt@zope.com
Fri, 1 Mar 2002 15:41:00 -0500


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv9746/lib/python/AccessControl

Modified Files:
      Tag: Zope-2_4-branch
	Owned.py 
Log Message:
remove caching from getOwner, since it would erroneously cache a wrapped
object


=== Zope/lib/python/AccessControl/Owned.py 1.11.16.2 => 1.11.16.3 ===
 
         udb, oid = owner
-        upath = ('',) + tuple(udb) + (oid,)
-        objectCache = getSecurityManager()._context.objectCache
-        if objectCache.has_key(upath):
-            return objectCache[upath]
 
         root=self.getPhysicalRoot()
         udb=root.unrestrictedTraverse(udb, None)
@@ -169,7 +165,6 @@
             if not hasattr(user, 'aq_parent'):
                 user = user.__of__(udb)
 
-        objectCache[upath] = user
         return user
 
     changeOwnership__roles__=()