[Zope3-checkins] SVN: Zope3/trunk/src/zope/interface/adapter.py Fixed a flaw in the handling of "handlers", which are subscription

Jim Fulton jim at zope.com
Wed May 26 05:22:26 EDT 2004


Log message for revision 24981:
Fixed a flaw in the handling of "handlers", which are subscription
adapters that do all of their work when the adapter "factories" are
called. They are registered with a "provided" interface of None.

This is a little weird because the flaw didn't actually break
anything. It would have caused a problem later in local subscriptions, 
but, because it doesn't affect the behavior here, I can't think of
a test for it.



-=-
Modified: Zope3/trunk/src/zope/interface/adapter.py
===================================================================
--- Zope3/trunk/src/zope/interface/adapter.py	2004-05-26 06:47:56 UTC (rev 24980)
+++ Zope3/trunk/src/zope/interface/adapter.py	2004-05-26 09:22:25 UTC (rev 24981)
@@ -481,14 +481,14 @@
             with = ()
 
         if provided is None:
-            provided = self._default
+            provided = Null
             
         required._subscriptionAdaptTo(provided, value, with)
 
 
     def subscriptions(self, required, provided):
         if provided is None:
-            provided = self._default
+            provided = Null
 
         order = len(required)
         if order == 1:




More information about the Zope3-Checkins mailing list