[Zodb-checkins] CVS: ZODB4/Persistence - Cache.py:1.5
Jeremy Hylton
jeremy@zope.com
Fri, 13 Dec 2002 17:12:38 -0500
Update of /cvs-repository/ZODB4/Persistence
In directory cvs.zope.org:/tmp/cvs-serv27937/Persistence
Modified Files:
Cache.py
Log Message:
In constructor, use arg to initialize inactive.
In weakref call back, we know we're get one arg; no need for *args.
=== ZODB4/Persistence/Cache.py 1.4 => 1.5 ===
--- ZODB4/Persistence/Cache.py:1.4 Fri Nov 15 16:49:42 2002
+++ ZODB4/Persistence/Cache.py Fri Dec 13 17:12:38 2002
@@ -25,7 +25,7 @@
self.__active = {}
self.__aget = self.__active.get
self._size = size
- self._inactive = 300
+ self._inactive = inactive
def __getitem__(self, oid):
o = self.__gget(oid, self)
@@ -206,5 +206,5 @@
def __init__(self, oid, dict):
self.oid, self.dict = oid, dict
- def __call__(self, *args):
+ def __call__(self, ref):
del self.dict[self.oid]