[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces - component.py:1.4

Jeremy Hylton jeremy@zope.com
Sun, 22 Jun 2003 16:18:18 -0400


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

Modified Files:
	component.py 
Log Message:
Add items() to IInterfaceService.

=== Zope3/src/zope/app/interfaces/component.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/interfaces/component.py:1.3	Tue May 20 15:43:28 2003
+++ Zope3/src/zope/app/interfaces/component.py	Sun Jun 22 16:18:17 2003
@@ -36,7 +36,7 @@
         The default is returned if the interface can't be found.
         """
 
-    def searchInterface(search_string='', base=None):
+    def searchInterface(search_string=None, base=None):
         """Return the interfaces that match the search criteria
 
         If a search string is given, only interfaces that contain the
@@ -46,10 +46,16 @@
         will be returned.
         """
 
-    def searchInterfaceIds(search_string='', base=None):
+    def searchInterfaceIds(search_string=None, base=None):
         """Return the ids of the interfaces that match the search criteria.
 
         See searchInterface
+        """
+
+    def items(search_string=None, base=None):
+        """Return id, interface pairs for all items matching criteria.
+
+        See searchInterface for the meaning of search-string and base.
         """
 
 class IGlobalInterfaceService(IInterfaceService):