[Zope3-checkins] CVS: Zope3/src/zope/app/services - event.py:1.19

Guido van Rossum guido@python.org
Wed, 12 Mar 2003 14:22:42 -0500


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

Modified Files:
	event.py 
Log Message:
Comment out some broken code.  I'd fix it if I could.


=== Zope3/src/zope/app/services/event.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/services/event.py:1.18	Tue Mar 11 11:11:22 2003
+++ Zope3/src/zope/app/services/event.py	Wed Mar 12 14:22:36 2003
@@ -112,9 +112,11 @@
                 # adding this subscriber to badSubscribers is inappropriate.
                 getAdapter(obj, ISubscriber).notify(event)
 
-        for subscriber in badSubscribers:
-            # XXX this ought to be logged
-            clean_self.unsubscribe(subscriber)
+##        # XXX This code is bogus: unsubscribe() takes two arguments, not one.
+##        #     Alas, I don't know how to fix it; I just don't want it to fail.
+##        for subscriber in badSubscribers:
+##            # XXX this ought to be logged
+##            clean_self.unsubscribe(subscriber)
 
     def notify(wrapped_self, event):
         clean_self = removeAllProxies(wrapped_self)