[Zope3-checkins] CVS: Zope3/src/zope/app/tests - setup.py:1.8.8.1
Fred L. Drake, Jr.
fred at zope.com
Thu Jan 15 15:50:24 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/tests
In directory cvs.zope.org:/tmp/cvs-serv1563/src/zope/app/tests
Modified Files:
Tag: zope3-fdrake-globalized-modules-branch
setup.py
Log Message:
Checkpointing the current state of the module globalization work on a branch
so it does not get lost. See http://dev.zope.org/Zope3/ModulesAreGlobal.
=== Zope3/src/zope/app/tests/setup.py 1.8 => 1.8.8.1 ===
--- Zope3/src/zope/app/tests/setup.py:1.8 Fri Nov 21 12:12:14 2003
+++ Zope3/src/zope/app/tests/setup.py Thu Jan 15 15:50:22 2004
@@ -156,15 +156,15 @@
from zope.component import getServiceManager
from zope.app.interfaces.services.hub import IObjectHub
from zope.app.interfaces.services.event import ISubscriptionService
+from zope.app.interfaces.services.module import IModuleService
from zope.app.services.event import EventService
from zope.app.services.hub import ObjectHub
-from zope.app.services.servicenames import HubIds
+from zope.app.services.globalmodule import ModuleService
+from zope.app.services.servicenames import HubIds, Modules
from zope.app.services.servicenames import EventPublication, EventSubscription
-def createStandardServices(folder, hubids=None):
- '''Create a bunch of standard placeful services
- Well, uh, 3
- '''
+def createStandardServices(folder, hubids=None):
+ '''Create a bunch of standard placeful services.'''
sm = createServiceManager(folder)
defineService = getServiceManager(None).defineService
@@ -174,6 +174,7 @@
# zope.app.events.tests.PlacelessSetup
defineService(HubIds, IObjectHub)
+ defineService(Modules, IModuleService)
# EventService must be IAttributeAnnotatable so that it can support
# dependencies.
@@ -185,3 +186,4 @@
hubids = ObjectHub()
addService(sm, HubIds, hubids)
+ addService(sm, Modules, ModuleService())
More information about the Zope3-Checkins
mailing list