[silva-dev] Silva2.0 document creation times?

Andy Altepeter aaltepet at bethel.edu
Thu Jul 12 20:25:58 CEST 2007


On Thursday 12 July 2007 11:56, Andy Altepeter wrote:
> On Thursday 12 July 2007 11:08, Andy Altepeter wrote:
> > Greetings,
> >
> > It appears that Silva 2.0 doesn't set the creation datetime on newly
> > created documents.  It does appear to work in Silva 1.5.3.  Ideas?
>
> I have one:
>
> I think the last line of SilvaObject.object_moved should be changed from:
>     object._set_creation_datetime()
> to:
>     object.get_previewable()._set_creation_datetime()
> (given that get_creation_datetime defers to get_previewable)

Actually, this doesn't work.  This event is called when the Document is placed 
in it's container, which happens _before_ the version is placed inside the 
document.

So, I though: "subcbrive an IObjectMoved event for IVersions", since the 
versions of VersionedContent don't implement ISilvaObject.  

The object_moved function is now called when the version is added to the 
document.  However, since IVersions don't implement _set_creation_datetime, 
it's still a "no go".

So, I'm giving up.  I don't know enough about the Silva core to know where to 
go from here.

Since this is a bug, I'm also creating an issue for this on launchpad.

https://bugs.launchpad.net/silva/+bug/125602

Andy



More information about the silva-dev mailing list