[Checkins] SVN: zope.component/branches/wichert-utility-factories/src/zope/component/registry.py We need to pass the factory information to the unregister event as well

Wichert Akkerman wichert at wiggy.net
Wed Jul 23 07:53:07 EDT 2008


Log message for revision 88758:
  We need to pass the factory information to the unregister event as well

Changed:
  U   zope.component/branches/wichert-utility-factories/src/zope/component/registry.py

-=-
Modified: zope.component/branches/wichert-utility-factories/src/zope/component/registry.py
===================================================================
--- zope.component/branches/wichert-utility-factories/src/zope/component/registry.py	2008-07-23 11:08:37 UTC (rev 88757)
+++ zope.component/branches/wichert-utility-factories/src/zope/component/registry.py	2008-07-23 11:53:05 UTC (rev 88758)
@@ -140,7 +140,7 @@
             self.utilities.unsubscribe((), provided, component)
 
         zope.event.notify(interfaces.Unregistered(
-            UtilityRegistration(self, provided, name, component, old[1])
+            UtilityRegistration(self, provided, name, component, *old[1:])
             ))
 
         return True



More information about the Checkins mailing list