[Zope-CMF] Metadata API suggestion
Jens Quade
jq@jquade.de
20 Sep 2001 13:13:59 +0200
Hi,
changing the set of Metadata for CMFdefault content types
brought up the following problem:
The _edit method of CMFDocument gets all Metadata headers
using self.getMetadataHeaders(), but writes only an arbitrary
subset of them back using self.editMetadata(). Both methods
inherited from DublinCore.DefaultDublinCoreImpl.
I think it would be nice to have another update function for
Metadata, e.g. "setMetadata" that works so that
obj.setMetadata(obj.getMetadataHeaders())
changes nothing except Last modification date, and for example
header=obj.getMetadataHeaders()
header['Title']='foo'
obj.setMetadataHeaders(header)
changes only the Title.
The current implementation strips all Metadata not known to
Document which makes it difficult to add new metadata columns.
regards,
jens
CC to tracker.