[Checkins]
SVN: Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py
Add some interfaces.
Uli Fouquet
uli at gnufix.de
Wed Jun 18 05:27:08 EDT 2008
Log message for revision 87491:
Add some interfaces.
Changed:
A Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py
-=-
Added: Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py
===================================================================
--- Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py (rev 0)
+++ Sandbox/ulif/zope.introspector/src/zope/introspector/interfaces.py 2008-06-18 09:27:06 UTC (rev 87491)
@@ -0,0 +1,39 @@
+##############################################################################
+#
+# Copyright (c) 2008 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (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.
+#
+##############################################################################
+"""Interfaces for zope.introspector.
+"""
+from zope import interface, schema
+
+class IIntrospectorBaseClasses(interface.Interface):
+ ObjectInfo = interface.Attribute("Basic Object Information")
+ UtilityInfo = interface.Attribute("Utilities an object can access")
+
+class IIntrospectorAPI(IIntrospectorBaseClasses):
+ """The API of zope.introspector.
+ """
+ pass
+
+class IObjectInfo(interface.Interface):
+ """Information about simple types.
+ """
+ def getType():
+ """Get the type of the object handled here.
+ """
+
+class IUtilityInfo(interface.Interface):
+ """Information about utilities available to an object.
+ """
+ def getAllUtilities():
+ """Get all utilities available to an object.
+ """
More information about the Checkins
mailing list