[Zope3-checkins] CVS: Zope3/src/zope/app - introspector.py:1.3

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


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

Modified Files:
	introspector.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/introspector.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/introspector.py:1.2	Wed Dec 25 09:12:24 2002
+++ Zope3/src/zope/app/introspector.py	Thu Mar 13 12:10:35 2003
@@ -17,7 +17,7 @@
 from zope.interface.implements import implements, getImplements
 
 from zope.app.interfaces.introspector import IIntrospector
-from zope.app.interfaces.services.service import INameResolver
+from zope.app.interfaces.services.module import IModuleService
 from zope.component import getServiceManager, getAdapter, \
      queryServiceManager, getServiceDefinitions
 from zope.proxy.introspection import removeAllProxies
@@ -54,7 +54,7 @@
             if (self.context == Interface and
                 name != 'Interface._Interface.Interface'):
                 servicemanager = getServiceManager(self.context)
-                adapter = getAdapter(servicemanager, INameResolver)
+                adapter = getAdapter(servicemanager, IModuleService)
                 self.currentclass = adapter.resolve(name)
                 self.context = self.currentclass
             else: