[Zope3-checkins] CVS: Zope3/src/zope/app/traversing - namespace.py:1.8

Guido van Rossum guido@python.org
Thu, 13 Mar 2003 12:10:38 -0500


Update of /cvs-repository/Zope3/src/zope/app/traversing
In directory cvs.zope.org:/tmp/cvs-serv17382/src/zope/app/traversing

Modified Files:
	namespace.py 
Log Message:
- Remove title and description fields from add_cache.pt (these
  attributes no longer exist on configurations).

- Changed the custom view for adding a connection configuration with
  an add form directive; addconnectionconfig.pt and connection.py in
  zope/app/browser/services bite the dust.

- Change the componentPath attribute to a ComponentPath field; this
  ran into some circularities so we did the following:

- Renamed INameResolver to IModuleService and moved it to its own
  file, zope/app/interfaces/services/module.py.

- Fixed up a few docstrings and comments.



=== Zope3/src/zope/app/traversing/namespace.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/traversing/namespace.py:1.7	Thu Mar  6 17:13:29 2003
+++ Zope3/src/zope/app/traversing/namespace.py	Thu Mar 13 12:10:38 2003
@@ -26,7 +26,7 @@
 from zope.app.services.servicenames import Resources
 
 from zope.app.interfaces.traversing import ITraversable
-from zope.app.interfaces.services.service import INameResolver
+from zope.app.interfaces.services.module import IModuleService
 
 import re
 
@@ -209,7 +209,7 @@
 def module(name, parameters, pname, ob, request):
     """Used to traverse to a module (in dot notation)"""
     servicemanager = getServiceManager(ob)
-    adapter = getAdapter(servicemanager, INameResolver)
+    adapter = getAdapter(servicemanager, IModuleService)
     if adapter is not None:
         ob = adapter.resolve(name)
     if queryDefaultViewName(ob, request) is None: