[Zope-CMF] DublinCore Contributors

Tres Seaver tseaver@zope.com
26 May 2003 10:40:14 -0400

On Mon, 2003-05-26 at 05:45, Ignacio Dosil Lago wrote:
>   Hi all
>   As a content can be modified by different users, for item, when several 
> owners in the same folder:
> what about updating the contributors tuple automatically as a content is 
> modified?

This is easy enough to do, using only skin methods.

> what if the last modifier login name is shown with the last modification time 
> or, at least, add a method or attribute to the default DublinCore 
> implementation to allow it?

Last modifier is harder, unless you force the ordering of the
contributors to be significant.

>  Are there any reasons not to do this?

The biggest issue is wiring up all your content to call the method you
write at appropriate times.  Zope3's event service makes this simpler: 
all an object is responsible for is notifying the world that it is
created / modified, while one of the listeners to those events updates
the created / created_by / modified / modified_by metadata.  In fact,
Christian Theune wired that listener up to do exactly what you propose.

Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com