[Zope3-checkins] SVN: Zope3/trunk/ generate an ObjectCreatedEvent when the root object is created

Fred L. Drake, Jr. fdrake at gmail.com
Tue Sep 26 01:09:40 EDT 2006


Log message for revision 70380:
  generate an ObjectCreatedEvent when the root object is created

Changed:
  U   Zope3/trunk/doc/CHANGES.txt
  U   Zope3/trunk/src/zope/app/apidoc/codemodule/browser/introspector.txt
  U   Zope3/trunk/src/zope/app/appsetup/bootstrap.py

-=-
Modified: Zope3/trunk/doc/CHANGES.txt
===================================================================
--- Zope3/trunk/doc/CHANGES.txt	2006-09-25 18:16:03 UTC (rev 70379)
+++ Zope3/trunk/doc/CHANGES.txt	2006-09-26 05:09:39 UTC (rev 70380)
@@ -125,6 +125,8 @@
 
     Bug fixes
 
+      - Generate an ObjectCreatedEvent when the root object is created.
+
       - More or less fixed the static apidoc generator. (fix + workaround).
 
       - Fixed issue 705, double URL unquoting of GET parameters in

Modified: Zope3/trunk/src/zope/app/apidoc/codemodule/browser/introspector.txt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/codemodule/browser/introspector.txt	2006-09-25 18:16:03 UTC (rev 70379)
+++ Zope3/trunk/src/zope/app/apidoc/codemodule/browser/introspector.txt	2006-09-26 05:09:39 UTC (rev 70380)
@@ -209,7 +209,9 @@
               <code>dict</code></a>)
           <br />
           <i>Value:</i>
-          <code>{u'Date.Modified': (u'...',), u'Creator': (u'zope.mgr',)}</code>
+          <code>{u'Date.Created': (u'...',),
+                 u'Date.Modified': (u'...',),
+                 u'Creator': (u'zope.mgr',)}</code>
           <br />
         </li>
       </ul>

Modified: Zope3/trunk/src/zope/app/appsetup/bootstrap.py
===================================================================
--- Zope3/trunk/src/zope/app/appsetup/bootstrap.py	2006-09-25 18:16:03 UTC (rev 70379)
+++ Zope3/trunk/src/zope/app/appsetup/bootstrap.py	2006-09-26 05:09:39 UTC (rev 70380)
@@ -25,6 +25,7 @@
 
 import zope.deprecation
 import zope.event
+import zope.lifecycleevent
 from zope.security.management import getSecurityPolicy
 from zope.security.simplepolicies import ParanoidSecurityPolicy
 from zope.traversing.api import traverse
@@ -181,6 +182,7 @@
     if root_folder is None:
         # ugh... we depend on the root folder implementation
         root_folder = rootFolder()
+        zope.event.notify(zope.lifecycleevent.ObjectCreatedEvent(root_folder))
         root[ZopePublication.root_name] = root_folder
         if not ISite.providedBy(root_folder):
             site_manager = site.LocalSiteManager(root_folder)



More information about the Zope3-Checkins mailing list