[Zope3-checkins] CVS: Zope3/src/zope/app/startup - bootstrap.py:1.14

Sidnei da Silva sidnei@x3ng.com.br
Sun, 30 Mar 2003 10:33:43 -0500


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

Modified Files:
	bootstrap.py 
Log Message:
Publish ObjectCreatedEvent so we get creationdate set for the root folder

=== Zope3/src/zope/app/startup/bootstrap.py 1.13 => 1.14 ===
--- Zope3/src/zope/app/startup/bootstrap.py:1.13	Sun Mar 23 17:35:42 2003
+++ Zope3/src/zope/app/startup/bootstrap.py	Sun Mar 30 10:33:42 2003
@@ -34,6 +34,8 @@
 from zope.app.services.principalannotation import PrincipalAnnotationService
 from zope.app.container.zopecontainer import ZopeContainerAdapter
 from zope.proxy.introspection import removeAllProxies
+from zope.app.event import publish
+from zope.app.event.objectevent import ObjectCreatedEvent
 
 def bootstrapInstance(db):
     """Bootstrap a Zope3 instance given a database object.
@@ -53,6 +55,7 @@
         addEssentialServices(root_folder)
         root[ZopePublication.root_name] = root_folder
 
+        publish(root_folder, ObjectCreatedEvent(root_folder))
         get_transaction().commit()
 
     connection.close()