[CMF-checkins] CVS: CMF - ContentTypeRegistry.py:1.2

tseaver@digicool.com tseaver@digicool.com
Fri, 25 May 2001 22:56:44 -0400 (EDT)


Update of /cvs-repository/CMF/CMFCore/interfaces
In directory korak.digicool.com:/tmp/cvs-serv24039/interfaces

Modified Files:
	ContentTypeRegistry.py 
Log Message:
 - Checkpoint:  TTW editing working, somewhat


--- Updated File ContentTypeRegistry.py in package CMF --
--- ContentTypeRegistry.py	2001/05/25 22:18:10	1.1
+++ ContentTypeRegistry.py	2001/05/26 02:56:42	1.2
@@ -102,6 +102,27 @@
             Return true if the rule matches, else false.
         """
 
+    def getTypeLabel( self ):
+        """
+            Return a human-readable label for the predicate type.
+        """
+    
+    def edit( self, **kw ):
+        """
+            Update the predicate.
+        """
+
+    def predicateWidget( self ):
+        """
+            Return a snipped of HTML suitable for editing the
+            predicate;  the snippet should arrange for values
+            to be marshalled by ZPublisher as a ':record', with
+            the ID of the predicate as the name of the record.
+
+            The registry will call the predictate's 'edit' method,
+            passing the fields of the record.
+        """
+
 class ContentTypeRegistry( Base ):
     """
         Registry for rules which map PUT args to a CMF Type Object.