[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/appsetup/bootstrap.txt Added a bit to the test to make sure that an

Jim Fulton jim at zope.com
Fri Feb 18 19:08:53 EST 2005


Log message for revision 29214:
  Added a bit to the test to make sure that an
  IDatabaseOpenedWithRootEvent got generated even if a root object
  didn't need to be created.
  

Changed:
  U   Zope3/trunk/src/zope/app/appsetup/bootstrap.txt

-=-
Modified: Zope3/trunk/src/zope/app/appsetup/bootstrap.txt
===================================================================
--- Zope3/trunk/src/zope/app/appsetup/bootstrap.txt	2005-02-18 22:47:25 UTC (rev 29213)
+++ Zope3/trunk/src/zope/app/appsetup/bootstrap.txt	2005-02-19 00:08:53 UTC (rev 29214)
@@ -33,4 +33,12 @@
 been created will want to subscribe to this event, not
 IDataBaseOpenedEvent.
 
+The subscriber generates the event whether or not the root had to be
+set up:
 
+    >>> bootstrap.bootStrapSubscriber(interfaces.DatabaseOpened(db))
+    >>> [e, event] = getEvents(interfaces.IDatabaseOpenedWithRootEvent)
+    >>> event.database is db
+    True
+
+



More information about the Zope3-Checkins mailing list