[Zope3-checkins] CVS: Zope3/src/zope/app/event/tests - placelesssetup.py:1.8 test_directives.py:1.7 test_logger.py:1.7
R. Sean Bowman
sean.bowman@acm.org
Fri, 7 Mar 2003 19:52:13 -0500
Update of /cvs-repository/Zope3/src/zope/app/event/tests
In directory cvs.zope.org:/tmp/cvs-serv6337/app/event/tests
Modified Files:
placelesssetup.py test_directives.py test_logger.py
Log Message:
change service names: Events -> EventDispatch, Subscription ->
EventSubscription, ErrorReports -> ErrorLogging
=== Zope3/src/zope/app/event/tests/placelesssetup.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/event/tests/placelesssetup.py:1.7 Tue Feb 11 21:17:22 2003
+++ Zope3/src/zope/app/event/tests/placelesssetup.py Fri Mar 7 19:51:41 2003
@@ -18,7 +18,7 @@
"""
from zope.component import getServiceManager
-from zope.app.services.servicenames import Events
+from zope.app.services.servicenames import EventDispatch
from zope.app.interfaces.event import IPublisher, ISubscriber
from zope.app.event.globalservice import eventPublisher
from zope.interface import Interface
@@ -50,8 +50,8 @@
defineService = sm.defineService
provideService = sm.provideService
- defineService(Events, IPublisher)
- provideService(Events, eventPublisher)
+ defineService(EventDispatch, IPublisher)
+ provideService(EventDispatch, eventPublisher)
del events[:]
eventPublisher.globalSubscribe(EventRecorder)
=== Zope3/src/zope/app/event/tests/test_directives.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/event/tests/test_directives.py:1.6 Tue Feb 11 21:17:22 2003
+++ Zope3/src/zope/app/event/tests/test_directives.py Fri Mar 7 19:51:41 2003
@@ -32,7 +32,7 @@
import DummyEvent
from zope.component.tests.placelesssetup import PlacelessSetup
from zope.component import getServiceManager
-from zope.app.services.servicenames import Events
+from zope.app.services.servicenames import EventDispatch
from zope.configuration.tests.basetestdirectivesxml import makeconfig
from zope.app.interfaces.event import IEvent
@@ -41,9 +41,9 @@
def setUp(self):
PlacelessSetup.setUp(self)
from zope.app.interfaces.event import IPublisher
- getServiceManager(None).defineService(Events, IPublisher)
+ getServiceManager(None).defineService(EventDispatch, IPublisher)
from zope.app.event.globalservice import eventPublisher
- getServiceManager(None).provideService(Events, eventPublisher)
+ getServiceManager(None).provideService(EventDispatch, eventPublisher)
def testSubscribe(self):
from zope.app.event.tests.subscriber import subscriber
=== Zope3/src/zope/app/event/tests/test_logger.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/event/tests/test_logger.py:1.6 Tue Feb 11 21:17:22 2003
+++ Zope3/src/zope/app/event/tests/test_logger.py Fri Mar 7 19:51:41 2003
@@ -20,7 +20,7 @@
from zope.component.tests.placelesssetup import PlacelessSetup
from zope.component import getServiceManager
-from zope.app.services.servicenames import Events
+from zope.app.services.servicenames import EventDispatch
from zope.app.event import globalSubscribe, globalUnsubscribe, publish
from zope.app.event.objectevent import ObjectAddedEvent
@@ -42,9 +42,9 @@
def setUp(self):
PlacelessSetup.setUp(self)
from zope.app.interfaces.event import IPublisher
- getServiceManager(None).defineService(Events, IPublisher)
+ getServiceManager(None).defineService(EventDispatch, IPublisher)
from zope.app.event.globalservice import eventPublisher
- getServiceManager(None).provideService(Events, eventPublisher)
+ getServiceManager(None).provideService(EventDispatch, eventPublisher)
# futz a handler in for testing
self.logger = logging.getLogger("Event.Logger")
self.oldlevel = self.logger.level