[Checkins] SVN: z3ext.product/trunk/ Send ObjectModifiedEvent for site on product install/uninstall.

Nikolay Kim fafhrd at datacom.kz
Mon Feb 2 05:27:10 EST 2009


Log message for revision 95957:
  Send ObjectModifiedEvent for site on product install/uninstall.

Changed:
  U   z3ext.product/trunk/CHANGES.txt
  U   z3ext.product/trunk/src/z3ext/product/product.py

-=-
Modified: z3ext.product/trunk/CHANGES.txt
===================================================================
--- z3ext.product/trunk/CHANGES.txt	2009-02-02 06:01:56 UTC (rev 95956)
+++ z3ext.product/trunk/CHANGES.txt	2009-02-02 10:27:09 UTC (rev 95957)
@@ -2,6 +2,12 @@
 CHANGES
 =======
 
+1.3.1 (2009-02-??)
+------------------
+
+- Send ObjectModifiedEvent for site on product install/uninstall.
+
+
 1.3.0 (2008-11-21)
 ------------------
 

Modified: z3ext.product/trunk/src/z3ext/product/product.py
===================================================================
--- z3ext.product/trunk/src/z3ext/product/product.py	2009-02-02 06:01:56 UTC (rev 95956)
+++ z3ext.product/trunk/src/z3ext/product/product.py	2009-02-02 10:27:09 UTC (rev 95957)
@@ -20,7 +20,9 @@
 from zope import interface, event
 from zope.component import getSiteManager
 from zope.component import getUtility, queryUtility, getUtilitiesFor
+from zope.app.component.hooks import getSite
 from zope.app.component.interfaces import ILocalSiteManager
+from zope.lifecycleevent import ObjectModifiedEvent
 
 from z3c.configurator import configure
 
@@ -79,6 +81,7 @@
                 subsm.__bases__ = subsm.__bases__
 
         event.notify(interfaces.ProductInstalledEvent(self.__product_name__, self))
+        event.notify(ObjectModifiedEvent(getSite()))
 
         self.update()
 
@@ -90,6 +93,7 @@
         configure(self, {})
         event.notify(
             interfaces.ProductUpdatedEvent(self.__product_name__, self))
+        event.notify(ObjectModifiedEvent(getSite()))
 
         self._checkRequiredUpdate()
 
@@ -111,6 +115,7 @@
 
         event.notify(
             interfaces.ProductUninstalledEvent(self.__product_name__, self))
+        event.notify(ObjectModifiedEvent(getSite()))
 
     def _checkInstalled(self, sm, registry, seen):
         if sm in seen:



More information about the Checkins mailing list