[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - namespace.py:1.4
R. Sean Bowman
sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:35 -0500
Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv18167/zope/app/traversing
Modified Files:
namespace.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/namespace.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.3 Tue Jan 7 07:27:55 2003
+++ Zope3/src/zope/app/traversing/namespace.py Thu Feb 6 01:50:02 2003
@@ -23,6 +23,7 @@
from zope.configuration.action import Action
from zope.component import queryAdapter, getAdapter, getServiceManager
from zope.component import queryDefaultViewName, getView, getService
+from zope.component.servicenames import ResourceService
from zope.app.interfaces.traversing import ITraversable
from zope.app.interfaces.services.service import INameResolver
@@ -126,7 +127,7 @@
return resource
def queryResourceInContext(ob, name, request, default=None):
- resource_service = getService(ob, 'Resources')
+ resource_service = getService(ob, ResourceService)
resource = resource_service.queryResource(ob, name, request)
if resource is None:
return default