[Zodb-checkins] CVS: Zope3/src/zope/interface - adapter.py:1.14
Jim Fulton
jim at zope.com
Mon Apr 12 13:58:35 EDT 2004
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv25211/src/zope/interface
Modified Files:
adapter.py
Log Message:
Use a separate dummy interface for Null adapters.
This will facilitate managing utilities later.
=== Zope3/src/zope/interface/adapter.py 1.13 => 1.14 ===
--- Zope3/src/zope/interface/adapter.py:1.13 Tue Mar 30 16:40:00 2004
+++ Zope3/src/zope/interface/adapter.py Mon Apr 12 13:58:34 2004
@@ -88,6 +88,7 @@
from zope.interface.interface import InterfaceClass
Default = InterfaceClass("Default", (), {})
+Null = InterfaceClass("Null", (), {})
class ReadProperty(object):
@@ -276,7 +277,6 @@
break
return False
-
class AdapterRegistry(object):
"""Adapter registry
"""
@@ -291,7 +291,7 @@
def __init__(self):
default = self._surrogateClass(Default, self)
self._default = default
- null = self._surrogateClass(Default, self)
+ null = self._surrogateClass(Null, self)
self._null = null
surrogates = {Default.weakref(): default}
self._surrogates = surrogates
More information about the Zodb-checkins
mailing list