[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/tests - test_conveniencefunctions.py:1.6 test_objectname.py:1.4 test_traverser.py:1.6
R. Sean Bowman
sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:38 -0500
Update of /cvs-repository/Zope3/src/zope/app/traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv18167/zope/app/traversing/tests
Modified Files:
test_conveniencefunctions.py test_objectname.py
test_traverser.py
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService
=== Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py:1.5 Sat Dec 28 12:49:34 2002
+++ Zope3/src/zope/app/traversing/tests/test_conveniencefunctions.py Thu Feb 6 01:50:04 2003
@@ -20,6 +20,7 @@
from zope.proxy.context import ContextWrapper
from zope.app.traversing.adapters import Traverser
from zope.component import getService
+from zope.component.servicenames import Adapters
from zope.app.interfaces.traversing import ITraverser, ITraversable
from zope.app.interfaces.traversing import IObjectName
from zope.app.traversing.adapters import DefaultTraversable, ObjectName
@@ -65,15 +66,15 @@
folder.item = item
self.tr = Traverser(root)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, ITraverser, Traverser)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, ITraversable, DefaultTraversable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, IObjectName, ObjectName)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
IContainmentRoot, IPhysicallyLocatable, RootPhysicallyLocatable)
=== Zope3/src/zope/app/traversing/tests/test_objectname.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/traversing/tests/test_objectname.py:1.3 Sat Dec 28 12:49:34 2002
+++ Zope3/src/zope/app/traversing/tests/test_objectname.py Thu Feb 6 01:50:04 2003
@@ -21,6 +21,7 @@
from zope.app.tests.placelesssetup import PlacelessSetup
from zope.component import getService, getAdapter
+from zope.component.servicenames import Adapters
from zope.proxy.context import ContextWrapper
from zope.app.interfaces.traversing import IObjectName
@@ -39,7 +40,7 @@
def setUp(self):
PlacelessSetup.setUp(self)
- provideAdapter = getService(None, "Adapters").provideAdapter
+ provideAdapter = getService(None, Adapters).provideAdapter
provideAdapter(None, IObjectName, [ObjectName])
provideAdapter(IRoot, IObjectName, [ObjectName])
=== Zope3/src/zope/app/traversing/tests/test_traverser.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/traversing/tests/test_traverser.py:1.5 Mon Dec 30 22:35:13 2002
+++ Zope3/src/zope/app/traversing/tests/test_traverser.py Thu Feb 6 01:50:04 2003
@@ -28,6 +28,7 @@
from zope.proxy.context import ContextWrapper
from zope.exceptions import NotFoundError, Unauthorized
from zope.component import getService
+from zope.component.servicenames import Adapters
from zope.interface.verify import verifyClass
from zope.interface.implements import instancesOfObjectImplements
@@ -78,11 +79,11 @@
PlacefulSetup.setUp(self)
# Build up a wrapper chain
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, ITraversable, DefaultTraversable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
IContainmentRoot, IPhysicallyLocatable, RootPhysicallyLocatable)
self.root = root = C('root')
@@ -152,11 +153,11 @@
def setUp(self):
PlacefulSetup.setUp(self)
- getService(None,"Adapters").provideAdapter(
+ getService(None,Adapters).provideAdapter(
None, ITraversable, DefaultTraversable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
None, IPhysicallyLocatable, WrapperPhysicallyLocatable)
- getService(None, "Adapters").provideAdapter(
+ getService(None, Adapters).provideAdapter(
IContainmentRoot, IPhysicallyLocatable, RootPhysicallyLocatable)
self.root = root = C('root')