[Checkins] SVN: zope.introspector/trunk/src/zope/introspector/interfaces.py Merge Martins interfaces.

Uli Fouquet uli at gnufix.de
Sat Jun 21 05:27:57 EDT 2008


Log message for revision 87621:
  Merge Martins interfaces.

Changed:
  U   zope.introspector/trunk/src/zope/introspector/interfaces.py

-=-
Modified: zope.introspector/trunk/src/zope/introspector/interfaces.py
===================================================================
--- zope.introspector/trunk/src/zope/introspector/interfaces.py	2008-06-21 09:11:52 UTC (rev 87620)
+++ zope.introspector/trunk/src/zope/introspector/interfaces.py	2008-06-21 09:27:56 UTC (rev 87621)
@@ -58,3 +58,72 @@
     """
     pass
 
+class IRegistryInfo(interface.Interface):
+    """Keeps information about the Component registry.
+    """
+    def getAllRegistrations():
+        """ Returns a list of everything registered in the component registry. 
+        """
+    
+    def getAllUtilities():
+        """ Returns a list of all utilities registered in the
+        component registery.
+        """
+        
+    def getAllAdapters():
+        """ Returns a list of all adapters registered in the component
+        registery.
+        """
+    
+    def getAllHandlers():
+        """ Returns a list of all handlers registered in the component
+        registery.
+        """
+        
+    def getAllSubscriptionAdapters():
+        """ Returns a list of all handlers registered in the component
+        registery.
+        """
+        
+    def getRegistrationsForInterface(searchString, types):
+        """ Searches the component registry for any interface with
+            searchString in the name...
+
+            Returns a list of component objects.
+        """
+        
+    def getAllInterfaces():
+        """ Returns a dictionary with all interfaces...
+            {'zope': 
+                    {'app':
+                            {'apidoc': [...],
+                             'applicationcontrol': [...],
+                             },
+                    'component': [...],
+                    },
+            'docutils': [...],
+            }
+        """
+        
+class IRegistrySearch(interface.Interface):
+    """ Adapter interface that takes care of doing searches in
+    different types of registry registrations.
+    """
+    
+    def __init__(registration):
+        """ Registers the registration in the adapter...
+        """
+        
+    def searchRegistration(string, caseSensitive):
+        """ Implements the search...
+            returns True or False
+        """
+        
+    def getInterfaces():
+        """ Returns a list with the interfaces involved in this registration
+        """
+        
+    def getObject():
+        """ Returns the registration
+        """
+



More information about the Checkins mailing list