[Zope3-checkins] CVS: Zope3/src/zope/app/event - subs.py:1.18

Jeremy Hylton jeremy@zope.com
Mon, 30 Jun 2003 15:52:31 -0400


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

Modified Files:
	subs.py 
Log Message:
Make resubscribeByHubId() a ContextMethod; looks like the code was
attempting this.

Don't store results of self._resubscribe() in unused local variable.


=== Zope3/src/zope/app/event/subs.py 1.17 => 1.18 ===
--- Zope3/src/zope/app/event/subs.py:1.17	Sun Jun  8 12:22:03 2003
+++ Zope3/src/zope/app/event/subs.py	Mon Jun 30 15:52:31 2003
@@ -303,9 +303,9 @@
                 "resubscribeByHubId for an object that doesn't exist: %s" %
                 reference)
 
-        num_converted = self._resubscribe(path, clean_self._paths,
-                                          hubId, clean_self._hubIds)
-        resubscribeByHubId = ContextMethod(resubscribeByHubId)
+        self._resubscribe(path, clean_self._paths, hubId, clean_self._hubIds)
+        
+    resubscribeByHubId = ContextMethod(resubscribeByHubId)
 
     def resubscribeByPath(wrapped_self, reference):
         clean_self = removeAllProxies(wrapped_self)