[Checkins] SVN: Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/interfaces.py Update interfaces.

Uli Fouquet uli at gnufix.de
Sat Mar 6 20:15:25 EST 2010


Log message for revision 109740:
  Update interfaces.
  

Changed:
  U   Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/interfaces.py

-=-
Modified: Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/interfaces.py
===================================================================
--- Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/interfaces.py	2010-03-07 01:04:06 UTC (rev 109739)
+++ Sandbox/ulif/grokui.zodbbrowser/src/grokui/zodbbrowser/interfaces.py	2010-03-07 01:15:25 UTC (rev 109740)
@@ -1,22 +1,28 @@
 """grokui.zodbbrowser interfaces.
 """
+from zope import schema
 from zope.interface import Interface
 
 class IObjectInfo(Interface):
-    """Infos about an ZODB object.
+    """Infos about a ZODB object.
     """
-    def getOID():
-        """Get the OID of an object.
-        """
+    oid = schema.Int(
+        title = u"ZODB object ID of an object",
+        required = False,
+        )
 
-    def getName():
-        """Get the name of an object or None.
+    name = schema.TextLine(
+        title = u"Name of an object or '???'",
+        required = True,
+        )
+
+    parent = schema.Object(
+        schema = Interface,
+        title = u"Parent of an object. Can be of arbitrary type.",
+        required = False,
+        )
+    
+    def getMembers():
+        """Get a list of object infos for all members of an object.
         """
-        
-    def getParent():
-        """Get parent of associated object or None.
-        """
 
-    def getChildren():
-        """Get a list of children objects.
-        """



More information about the checkins mailing list