[Zope-CMF] Change creation date

Chris Withers chrisw@nipltd.com
Wed, 28 Aug 2002 12:06:37 +0100


Jan Ulrich Hasecke wrote:
> Hi!
> 
> I just flooded an empty Plone Site with Documents via sitecopy. Now
> all documents have the same creation-date. Is it possible to change
> the creation date when the document is in the cmf. Or is it possible to
> fake the creation date while importing the document?

During your import process, set the creation_date attribute of your content 
objects to be a DateTime object representing the creation date you're after. You 
probably then need to recatalog the object for everything to be okay.

You may well need to do this in an external method.

cheers,

Chris