API Documentation

Metadata registration tool interface.

$Id: portal_metadata.py,v 1.4 2003/01/06 20:39:12 yuppie Exp $


class portal_metadata

CMF metadata policies interface.


id = Must be set to "portal_metadata"

Methods

listAllowedSubjects(content=None):

List the allowed values of the Subject DCMI element Subject elements should be keywords categorizing their resource.

Return only values appropriate for content's type, or all values if None.

validateMetadata(content):

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.

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.

Return only values appropriate for content's type, or all values if None.

setInitialMetadata(content):

Set initial values for content metatdata, supplying any site-specific defaults.

listAllowedFormats(content=None):

List the allowed values of the Format DCMI element. These items should be usable as HTTP Content-type values.

Return only values appropriate for content's type, or all values if None.

getPublisher():

Return the "formal" name of the publisher of the portal.

getFullName(userid):

Convert an internal userid to a "formal" name, if possible, perhaps using the portal_membership tool.

Used to map userid's for Creator, Contributor DCMI queries.

listAllowedLanguages(content=None):

List the allowed values of the Language DCMI element. Language element values should be suitable for generating HTTP headers.

Return only values appropriate for content's type, or all values if None.