[CMF-checkins] CVS: Products/CMFCore/interfaces - portal_metadata.py:1.7

Tres Seaver tseaver at zope.com
Tue Jul 20 02:12:08 EDT 2004


Update of /cvs-repository/Products/CMFCore/interfaces
In directory cvs.zope.org:/tmp/cvs-serv4627/CMFCore/interfaces

Modified Files:
	portal_metadata.py 
Log Message:
 - Revert unintended HEAD checkin.


=== Products/CMFCore/interfaces/portal_metadata.py 1.6 => 1.7 ===
--- Products/CMFCore/interfaces/portal_metadata.py:1.6	Tue Jul 20 02:07:39 2004
+++ Products/CMFCore/interfaces/portal_metadata.py	Tue Jul 20 02:11:38 2004
@@ -29,121 +29,76 @@
     #   Site-wide queries.
     #
     def getFullName(userid):
+        """
+            Convert an internal userid to a "formal" name, if
+            possible, perhaps using the 'portal_membership' tool.
 
-        """ Convert an internal userid to a "formal" name
-        
-        o Conversion occurs if possible, perhaps using the
-          'portal_membership' tool.
-
-        o Used to map userid's for Creator, Contributor DCMI queries.
+            Used to map userid's for Creator, Contributor DCMI
+            queries.
         """
 
     def getPublisher():
-
-        """ Return the "formal" name of the publisher of the portal.
+        """
+            Return the "formal" name of the publisher of the
+            portal.
         """
 
     #
     #   Content-specific queries.
     #
-    def listAllowedVocabulary( element, content=None, content_type=None ):
-
-        """ List the allowed values of a given DCMI element.
-
-        o If 'content_type' is passed, include only values allowed for
-          that type.
-
-        o Else if 'content' is passed, include only values allowed for
-          its type.
-
-        o Else include all known values.
-        """
-
     def listAllowedSubjects(content=None):
+        """
+            List the allowed values of the 'Subject' DCMI element
+            'Subject' elements should be keywords categorizing
+            their resource.
 
-        """ List the allowed values of the 'Subject' DCMI element.
-
-        o 'Subject' elements should be keywords categorizing their resource.
-
-        o Return only values appropriate for content's type, or all 
-          known values if None is passed.
-
-        o Deprecated;  please use 'listAllowedVocabulary' instead.
+            Return only values appropriate for content's type, or
+            all values if None.
         """
 
     def listAllowedFormats(content=None):
+        """
+            List the allowed values of the 'Format' DCMI element.
+            These items should be usable as HTTP 'Content-type'
+            values.
 
-        """ List the allowed values of the 'Format' DCMI element.
-
-        o These items should be usable as HTTP 'Content-type' values.
-
-        o Return only values appropriate for content's type, or all
-          known values if None is passed.
-
-        o Deprecated;  please use 'listAllowedVocabulary' instead.
+            Return only values appropriate for content's type, or
+            all values if None.
         """
 
     def listAllowedLanguages(content=None):
+        """
+            List the allowed values of the 'Language' DCMI element.
+            'Language' element values should be suitable for generating
+            HTTP headers.
 
-        """ List the allowed values of the 'Language' DCMI element.
-
-        o 'Language' element values should be suitable for generating
-          HTTP headers.
-
-        o Return only values appropriate for content's type, or all
-          known values if None is passed.
-
-        o Deprecated;  please use 'listAllowedVocabulary' instead.
+            Return only values appropriate for content's type, or
+            all values if None.
         """
 
     def listAllowedRights(content=None):
+        """
+            List the allowed values of the 'Rights' DCMI element.
+            The 'Rights' element describes copyright or other IP
+            declarations pertaining to a resource.
 
-        """ List the allowed values of the 'Rights' DCMI element.
-
-        o The 'Rights' element describes copyright or other IP
-          declarations pertaining to a resource.
-
-        o Return only values appropriate for content's type, or all
-          known values if None is passed.
-
-        o Deprecated;  please use 'listAllowedVocabulary' instead.
+            Return only values appropriate for content's type, or
+            all values if None.
         """
 
     #
     #   Validation policy hooks.
     #
     def setInitialMetadata(content):
-
-        """ Set initial values for content metatdata.
-        
-        o Tool should suppl any site-specific defaults.
         """
-
-    def validateMetadata(content):
-
-        """ Enforce portal-wide policies about DCI
-        
-        o E.g., tool may require non-empty title/description, etc.
-        
-        o Should be called by the skin methods immediately after saving
-          changes to the metadata of an object (or at workflow transitions).
+            Set initial values for content metatdata, supplying
+            any site-specific defaults.
         """
 
-    #
-    #   Content lookups
-    #
-    def getContentMetadata(content, element):
-
-        """ Return the given metadata element for 'content'.
-
-        o Allows indirection of the storage / format of metadata through
-          the tool.
+    def validateMetadata(content):
         """
-
-    def setContentMetadata(content, element, value):
-
-        """ Update the given metadata element for 'content'.
-
-        o Allows indirection of the storage / format of metadata through
-          the tool.
+            Enforce portal-wide policies about DCI, e.g.,
+            requiring non-empty title/description, etc.  Called
+            by the CMF immediately before saving changes to the
+            metadata of an object.
         """



More information about the CMF-checkins mailing list