[Zope3-checkins] CVS: Zope3/src/zodb/code - class_.py:1.18 module.py:1.13

Steve Alexander steve@cat-box.net
Fri, 6 Jun 2003 11:24:51 -0400


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

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


=== Zope3/src/zodb/code/class_.py 1.17 => 1.18 ===
--- Zope3/src/zodb/code/class_.py:1.17	Wed May  7 14:19:07 2003
+++ Zope3/src/zodb/code/class_.py	Fri Jun  6 11:24:20 2003
@@ -15,6 +15,7 @@
 
 __metaclass__ = type
 
+from zope.interface import implements
 from persistence import PersistentMetaClass
 from persistence._persistence import UPTODATE, CHANGED, GHOST
 from persistence.interfaces import IPersistent
@@ -233,7 +234,7 @@
     # The hack solution is to have a hook for _p_jar that activates
     # the object the first time it is set.
 
-    __implements__ = IPersistent
+    implements(IPersistent)
 
     # A class is normally created in the UPTODATE state, but when a
     # new ghost is created for it the serialization machinery passes


=== Zope3/src/zodb/code/module.py 1.12 => 1.13 ===
--- Zope3/src/zodb/code/module.py:1.12	Mon Jun  2 12:24:04 2003
+++ Zope3/src/zodb/code/module.py	Fri Jun  6 11:24:20 2003
@@ -15,6 +15,8 @@
 
 __metaclass__ = type
 
+from zope.interface import implements
+
 from persistence import Persistent
 from persistence._persistence import GHOST
 from zodb.code.interfaces import IPersistentModuleManager
@@ -101,7 +103,7 @@
 
 class PersistentModuleManager(Persistent):
 
-    __implements__ = IPersistentModuleManager
+    implements(IPersistentModuleManager)
 
     def __init__(self, registry):
         self._registry = registry
@@ -274,8 +276,8 @@
     looks for them there.
     """
 
-    __implements__ = (IPersistentModuleImportRegistry,
-                      IPersistentModuleUpdateRegistry)
+    implements(IPersistentModuleImportRegistry,
+               IPersistentModuleUpdateRegistry)
 
     def __init__(self):
         self._modules = {}