[Zope3-checkins] CVS: Zope3/src/zope/interface - adapter.py:1.16

Jim Fulton jim at zope.com
Thu Apr 15 11:30:00 EDT 2004


Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv810/src/zope/interface

Modified Files:
	adapter.py 
Log Message:
Include the Null dummy interface in the surrogates mapping, so it can
be treated the ame as other interfaces.


=== Zope3/src/zope/interface/adapter.py 1.15 => 1.16 ===
--- Zope3/src/zope/interface/adapter.py:1.15	Thu Apr 15 09:26:25 2004
+++ Zope3/src/zope/interface/adapter.py	Thu Apr 15 11:29:53 2004
@@ -293,7 +293,7 @@
         self._default = default
         null = self._surrogateClass(Null, self)
         self._null = null
-        surrogates = {Default.weakref(): default}
+        surrogates = {Default.weakref(): default, Null.weakref(): null}
         self._surrogates = surrogates
 
         def _remove(k):




More information about the Zope3-Checkins mailing list