[Zope3-checkins] CVS: Zope3/src/zope/app/services - interface.py:1.5

Jim Fulton jim@zope.com
Sat, 3 May 2003 12:33:00 -0400


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv23592/src/zope/app/services

Modified Files:
	interface.py 
Log Message:
Changed the way that interfaces are pickled during patching.
This is so that the interface dict is treated as state as
would normally be the case when pickling objects.



=== Zope3/src/zope/app/services/interface.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/services/interface.py:1.4	Thu May  1 15:35:34 2003
+++ Zope3/src/zope/app/services/interface.py	Sat May  3 12:32:59 2003
@@ -27,11 +27,11 @@
 
 class PersistentInterfaceWrapper(Wrapper):
 
-    def unwrap(self, bases, dict):
-        pi = PersistentInterfaceClass(self._obj.__name__, bases, {})
-        pi.__dict__.update(dict)
-        return pi
+    def unwrap(self):
+        return PersistentInterfaceClass(self._obj.__name__)
 
 def register():
     registerWrapper(InterfaceClass, PersistentInterfaceWrapper,
-                    lambda iface: (iface.__bases__, iface.__dict__))
+                    lambda iface: (),
+                    lambda iface: iface.__dict__,
+                    )