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

Steve Alexander steve@cat-box.net
Sat, 12 Apr 2003 07:52:18 -0400


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

Modified Files:
	bootstrap.py 
Log Message:
The hubIds service depends on the event service. So, add the hubIds service
after the event service.
Make the event channel (on which the event service depends) not require
a hubIds service.

So, most people's hubids services are not subscribed to their event
services. The easy way to fix this is to toss your Data.fs.
The fairly easy way to fix this is to go into the debugger, and subscribe
the service in the course of another transaction.
The pretty easy way to fix this is to make the hubids service disabled,
and then re-enabled.



=== Zope3/src/zope/app/startup/bootstrap.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/startup/bootstrap.py:1.14	Sun Mar 30 10:33:42 2003
+++ Zope3/src/zope/app/startup/bootstrap.py	Sat Apr 12 07:52:18 2003
@@ -70,13 +70,13 @@
     service_manager = ServiceManager()
     root_folder.setServiceManager(service_manager)
 
-    # Add the HubIds service first; some of the others need it
-    name = addService(root_folder, HubIds, ObjectHub)
-    configureService(root_folder, HubIds, name)
-
     # The EventService class implements two services
     name = addConfigureService(root_folder, EventPublication, EventService)
     configureService(root_folder, EventSubscription, name)
+
+    # Add the HubIds service, which subscribes itself to the event service
+    name = addService(root_folder, HubIds, ObjectHub)
+    configureService(root_folder, HubIds, name)
 
     # Sundry other services
     addConfigureService(root_folder, ErrorLogging,