[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.17

Steve Alexander steve@cat-box.net
Thu, 9 Jan 2003 07:59:25 -0500


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

Modified Files:
	interfacewidget.py 
Log Message:
removed another XXX demanding a test, in exchange for a test


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.16 => 1.17 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.16	Thu Jan  9 04:37:17 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Thu Jan  9 07:58:52 2003
@@ -82,7 +82,6 @@
         interfaces = map(interfaceToName, interfaces)
         # Only include None if there is no search string, and include_none
         # is True
-        # XXX need test for this
         if include_none and not search_string:
             interfaces = ['None'] + interfaces
 
@@ -261,6 +260,8 @@
             interfaces = list(service.searchInterface(search, base=base))
             interfaces.sort()
             interfaces = map(interfaceToName, interfaces)
+            # Only include None if there is no search string, and include_none
+            # is True
             if include_none and not search:
                 interfaces = ['None'] + interfaces
             search_name = '%s.search.i%s' % (name, count)