[Zope] Easiest way to possess 'creation_time' attribute?

Chris Withers chrisw@nipltd.com
Sat, 29 Jul 2000 16:56:17 +0100


Marcin Kasperski wrote:
> 
> What is the easiest way to force DTML Methods or documents in some
> directory to be automatically annotated with 'creation time' attribute?
> 
> I got the problem while developing simple website news page (implemented
> so the news are taken from dedicated subfolder and sorted via
> bobobase_modification_time reverse):
> - if I correct spelling in my news item, it gets 'modern' date
> - if I export from one zope instance and import into another one, all
> objects get the brand new bobobase_modification_time

I'd love to know how to do this in general in Zope too...

cheers,

Chris

PS: the only way I can think of right now is to subclass DTML
document/method and override the add method to take a copy of
bobobase_modification_time and stroe it in an attribute/property called
creation time.