Easiest way to possess 'creation_time' attribute?
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 Regards -- Marcin.Kasperski | Users typically do not know exactly what they want @softax.com.pl | and are unable to articulate all that they know. Marcin.Kasperski | (Parnas) @bigfoot.com |
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.
participants (2)
-
Chris Withers -
Marcin Kasperski