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

Fred L. Drake, Jr. fred@zope.com
Tue, 24 Dec 2002 01:49:39 -0500


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

Modified Files:
      Tag: NameGeddon-branch
	introspector.py 
Log Message:
- remove unused imports
- reorganize imports
- minor cleanup, normalize whitespace


=== Zope3/src/zope/app/browser/introspector.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/app/browser/introspector.py:1.1.2.1	Mon Dec 23 14:30:58 2002
+++ Zope3/src/zope/app/browser/introspector.py	Tue Dec 24 01:49:39 2002
@@ -2,26 +2,26 @@
 #
 # Copyright (c) 2001, 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
-from zope.component import getAdapter
 from zope.publisher.browser import BrowserView
 from zope.app.interfaces.introspector import IIntrospector
-from Zope.App.PageTemplate import ViewPageTemplateFile
-from zope.component import getServiceManager, getAdapter, \
-     queryServiceManager, getServiceDefinitions, queryAdapter, getService
-# from Zope.App.OFS.Services.IConfigureFor import IConfigureFor
+from zope.component import getAdapter
+# XXX only used for commented-out section below
+# from zope.component import getServiceManager, getServiceDefinitions, \
+#      queryAdapter, getService
 from zope.component.exceptions import ComponentLookupError
 
+
 class IntrospectorView(BrowserView):
-    
+
     def getIntrospector(self):
         introspector = getAdapter(self.context, IIntrospector)
         introspector.setRequest(self.request)
@@ -36,16 +36,19 @@
         #    except ComponentLookupError:
         #        pass
         #    else:
+        #        # XXX IConfigureFor appears to have disappeared at some point
         #        adapter = queryAdapter(service, IConfigureFor)
-        #        if adapter is not None and adapter.hasConfigurationFor(self.context):
-        #            search_result = service.getRegisteredMatching(self.context, None, [], self.context)
+        #        if (adapter is not None
+        #            and adapter.hasConfigurationFor(self.context)):
+        #            search_result = service.getRegisteredMatching(
+        #                self.context, None, [], self.context)
         #            directive_path = []
         #            if search_result:
         #                for eachitem in search_result:
         #                    dir_list = eachitem['directives']
         #                    component_path = eachitem['component_path']
         #                    for item in dir_list:
-        #                        directives = item[2]                         
+        #                        directives = item[2]
         #                        if directives:
         #                            if directives[0] is None:
         #                                directives = directives[1:]