[Zodb-checkins] CVS: Zope3/src/persistence - _persistent.py:1.3 cache.py:1.10

Steve Alexander steve at cat-box.net
Fri Jun 6 12:24:49 EDT 2003


Update of /cvs-repository/Zope3/src/persistence
In directory cvs.zope.org:/tmp/cvs-serv25930/src/persistence

Modified Files:
	_persistent.py cache.py 
Log Message:
Changed old style __implements__ declarations to new-style implements()
ones.


=== Zope3/src/persistence/_persistent.py 1.2 => 1.3 ===
--- Zope3/src/persistence/_persistent.py:1.2	Wed Dec 25 09:12:13 2002
+++ Zope3/src/persistence/_persistent.py	Fri Jun  6 11:24:18 2003
@@ -13,6 +13,7 @@
 ##############################################################################
 from time import time
 from persistence.interfaces import IPersistent
+from zope.interface import implements
 
 
 def _p_get_changed(self):
@@ -58,7 +59,7 @@
     """Mix-in class providing IPersistent support
     """
 
-    __implements__ = IPersistent
+    implements(IPersistent)
 
     _p_changed = property(_p_get_changed, _p_set_changed, _p_del_changed,
                           "set _p_changed to 1 to indicate a change")


=== Zope3/src/persistence/cache.py 1.9 => 1.10 ===
--- Zope3/src/persistence/cache.py:1.9	Tue May 20 14:38:50 2003
+++ Zope3/src/persistence/cache.py	Fri Jun  6 11:24:18 2003
@@ -17,12 +17,14 @@
 
 import logging
 
+from zope.interface import implements
+
 from persistence.interfaces import ICache
 from persistence._persistence import GHOST
 
 class Cache(object):
 
-    __implements__ = ICache
+    implements(ICache)
 
     def __init__(self, size=500, inactive=300):
         self._ghosts = {}




More information about the Zodb-checkins mailing list