[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/module - __init__.py:1.4

Fred L. Drake, Jr. fred at zope.com
Thu Aug 21 18:57:42 EDT 2003


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

Modified Files:
	__init__.py 
Log Message:
fire an ObjectCreatedEvent for new persistent modules


=== Zope3/src/zope/app/browser/services/module/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/module/__init__.py:1.3	Sun Aug 17 02:05:50 2003
+++ Zope3/src/zope/app/browser/services/module/__init__.py	Thu Aug 21 17:57:41 2003
@@ -17,6 +17,8 @@
 """
 
 from zope.app.services.module import Manager
+from zope.app.event import publish
+from zope.app.event.objectevent import ObjectCreatedEvent
 from zope.publisher.browser import BrowserView
 
 from zope.app.i18n import ZopeMessageIDFactory as _
@@ -32,6 +34,7 @@
         mgr = self.context.add(mgr)  # local registration
         mgr.execute()
         self.request.response.redirect(self.context.nextURL())
+        publish(self.context.context, ObjectCreatedEvent(mgr))
 
 class EditModule(BrowserView):
 




More information about the Zope3-Checkins mailing list