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

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


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

Modified Files:
	Owned.py 
Log Message:
Remove cache from getOwner, since it would have cached both unwrapped and
wrapped objects (caching wrapped objects being a bad thing)


=== Releases/Zope/lib/python/AccessControl/Owned.py 1.15 => 1.16 ===
 
         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)
@@ -90,7 +86,6 @@
         else:
             user = udb.getUserById(oid, None)
             if user is None: user = SpecialUsers.nobody
-        objectCache[upath] = user
         return user
 
     changeOwnership__roles__=()