[Zope3-checkins] CVS: Zope3/src/zope/app/startup - bootstrap.py:1.4
R. Sean Bowman
sean.bowman@acm.org
Wed, 5 Feb 2003 23:31:31 -0500
Update of /cvs-repository/Zope3/src/zope/app/startup
In directory cvs.zope.org:/tmp/cvs-serv8752/zope/app/startup
Modified Files:
bootstrap.py
Log Message:
changed service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports
=== Zope3/src/zope/app/startup/bootstrap.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/startup/bootstrap.py:1.3 Mon Dec 30 09:03:19 2002
+++ Zope3/src/zope/app/startup/bootstrap.py Wed Feb 5 23:30:57 2003
@@ -24,6 +24,8 @@
from zope.app.traversing import traverse, traverseName
from zope.app.publication.zopepublication import ZopePublication
from zope.app.content.folder import RootFolder
+from zope.component.servicenames import Events, HubIds, Subscription
+from zope.component.servicenames import ErrorReports
from zope.app.services.service import ServiceManager
from zope.app.services.service import ServiceConfiguration
from zope.app.services.hub import ObjectHub
@@ -62,11 +64,11 @@
"""
service_manager = ServiceManager()
root_folder.setServiceManager(service_manager)
- name = addConfigureService(root_folder, 'Events', EventService)
- configureService(root_folder, 'Subscription', name)
+ name = addConfigureService(root_folder, Events, EventService)
+ configureService(root_folder, Subscription, name)
- addConfigureService(root_folder, 'HubIds', ObjectHub)
- addConfigureService(root_folder, 'ErrorReportingService',
+ addConfigureService(root_folder, HubIds, ObjectHub)
+ addConfigureService(root_folder, ErrorReports,
ErrorReportingService, copy_to_zlog=True)
def addConfigureService(root_folder, service_type, service_factory, **kw):