[Zope-CMF] Historical revisions in CMF (was Re: CMF newbiequestions)

Dieter Maurer dieter@handshake.de
Sat, 29 Mar 2003 00:16:11 +0100


Ausum Studio wrote at 2003-3-26 19:38 -0500:
 > I'd appreciate more people test this, since I'd like to go into production.
 > One of the nicest features that comes up is the ability to enable the
 > existing status history page to provide a link to the corresponding
 > revision, so that we can get to know what it was the current version of the
 > content object, at the time its status was changed, at least up to the
 > moment a Data.fs pack was performed. :)

I have an experimental (and still a bit rudimentary) HCFileStorage
("History Controllable FileStorage"). It allows to define
history categories (based on base classes) and associated retension times.

When "pack" would normally drop a version, it checks whether it
belongs to such a history category and if so whether its retension
time is not yet over. Only if the time says, it should be dropped,
it is; otherwise it is retained

In one setup, I use this to prevent deletion of all
"Historical" instances while the remaining instances are
packed normally.


I also have a "historical connection" that automatically
loads subobjects as of a given historical time.
This makes the history mechanism available for structured
object, such as folders.


If someone it interested, I can make code available.


Dieter