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

Steve Alexander steve@cat-box.net
Mon, 12 May 2003 12:31:50 -0400


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

Modified Files:
	event.py 
Log Message:
Removed obselete comments.


=== Zope3/src/zope/app/services/event.py 1.23 => 1.24 ===
--- Zope3/src/zope/app/services/event.py:1.23	Thu May  1 15:35:34 2003
+++ Zope3/src/zope/app/services/event.py	Mon May 12 12:31:50 2003
@@ -386,26 +386,13 @@
         # we're unbound as EventSubscription
         if name == EventSubscription:
             clean_self = removeAllProxies(wrapped_self)
-            clean_self._v_unbinding = True
-            try:
-                ContextSuper(EventService, wrapped_self).unbound(name)
 
-            # this flag is used by the unsubscribedFrom method (below) to
+            # This flag is used by the unsubscribedFrom method (below) to
             # determine that it doesn't need to further unsubscribe beyond
             # what we're already doing.
-
-            # Both of the following approaches have wrapper/security
-            # problems:
-            #
-            #  wrapped_self._unbound(name) # using _unbound above
-            # and
-            #  ServiceSubscriberEventChannel.unbound(wrapped_self, name)
-            #
-            # so we're doing a copy and paste from
-            # ServiceSubscriberEventChannel:
-            # 
-            # start copy/paste
-            # end copy/paste
+            clean_self._v_unbinding = True
+            try:
+                ContextSuper(EventService, wrapped_self).unbound(name)
             finally:
                 # unset flag
                 del clean_self._v_unbinding