[Zodb-checkins] CVS: Zope3/src/zope/interface - adapter.py:1.12
    Stephan Richter 
    srichter at cosmos.phy.tufts.edu
       
    Sun Mar 28 18:43:05 EST 2004
    
    
  
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv23631/src/zope/interface
Modified Files:
	adapter.py 
Log Message:
Subscription support is not implemented in the adapter registry's
getRegisteredMatching() method. However, we alreay have subscriptions, which
broke the method completely for any call. Commented out the raising of the
'NotImplementedError' and added a TODO item.
=== Zope3/src/zope/interface/adapter.py 1.11 => 1.12 ===
--- Zope3/src/zope/interface/adapter.py:1.11	Thu Mar 18 07:19:29 2004
+++ Zope3/src/zope/interface/adapter.py	Sun Mar 28 18:42:28 2004
@@ -620,7 +620,10 @@
                     for key, factories in items:
                         subscription, rwith, aname, target = key
                         if subscription:
-                            raise NotImplementedError
+                            continue
+                            # XXX: We have subscriptions now, so not being
+                            # implemented is not an option. (SR) 
+                            #raise NotImplementedError
                         if with is not None and not mextends(with, rwith):
                             continue
                         if name is not None and aname != name:
    
    
More information about the Zodb-checkins
mailing list