[Checkins] SVN: Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py Add some base type interfaces.

Uli Fouquet uli at gnufix.de
Wed Jun 18 08:54:29 EDT 2008


Log message for revision 87507:
  Add some base type interfaces.

Changed:
  U   Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py

-=-
Modified: Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py
===================================================================
--- Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py	2008-06-18 10:58:46 UTC (rev 87506)
+++ Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py	2008-06-18 12:54:28 UTC (rev 87507)
@@ -17,6 +17,9 @@
 
 class IIntrospectorBaseClasses(interface.Interface):
     ObjectInfo = interface.Attribute("Basic Object Information")
+    ModuleInfo = interface.Attribute("Information about a module")
+    PackageInfo = interface.Attribute("Information about a package")
+    TypeInfo = interface.Attribute("Information about a basic type")
     UtilityInfo = interface.Attribute("Utilities an object can access")
 
 class IIntrospectorAPI(IIntrospectorBaseClasses):
@@ -31,9 +34,27 @@
         """Get the type of the object handled here.
         """
 
+class IModuleInfo(interface.Interface):
+    """Information about modules.
+    """
+    pass
+
+class IPackageInfo(interface.Interface):
+    """Information about packages.
+    """
+    def getPackageFiles():
+        """Get the package files contained in a package.
+        """
+
 class IUtilityInfo(interface.Interface):
     """Information about utilities available to an object.
     """
     def getAllUtilities():
         """Get all utilities available to an object.
         """
+
+class ITypeInfo(interface.Interface):
+    """Information about types.
+    """
+    pass
+



More information about the Checkins mailing list