----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> Newsgroups: gmane.comp.web.zope.cmf,gmane.comp.web.zope.plone.user Cc: <zope-cmf@zope.org>; <plone-users@lists.sourceforge.net> Sent: Tuesday, May 04, 2004 4:31 AM Subject: Re: Date based snapshots
Dylan Jay wrote at 2004-5-3 15:57 +1000:
I have a requirement to be able to view an entire site as it was a certain date including pictures etc. One way would be just to copy the site and windback the data.fs. Is there some other way this could be done via a UI sort of like a reverse Vesion object?
I have a specialized connection that lets you see all objects as they have been at a given time -- provided this information is still there. It gives you a POSKeyError, when this is not the case.
This sounds like what I'm looking for. Does it work something like the following? 1. Enter date at a particular place 2. Cookie is set 3. You can browse whereever you like at it will be exactly as it was Is it possible to have a look at the code?
Also, is there an alternative to compacting the ZODB such that all that history could be archive offline but then reconnected when needed for view a snapshot?
Does anyone have an idea of how hard this would be to do? Basically what I'm proposing is 1. Ability to mount two or more databases, each of which is the same DB just at a different slice of time e.g. 1 week 2. Ability to slice a DB in half. The back half is essentially rolled back and the front half is compacted so when joined they have the complete history. This way if they wanted to view diffs of pages or the whole site at a particular date then they just have use some admin interface to mount the right time period from backup storage and then just use your tool above or normal zope diffing. I think such a feature would be a real asset to zope in the corporate/government environment Dylan Jay --- http://www.meetmemap.com - makes giving directions easy http://www.pretaweb.com - Update-it-yourself, low cost websites http://www.eatmanifesto.com - against all dumbing down of food http://www.subjectivise.com/StockPhotography
Dylan Jay wrote at 2004-5-4 09:28 +1000:
...
I have a specialized connection that lets you see all objects as they have been at a given time -- provided this information is still there. It gives you a POSKeyError, when this is not the case.
This sounds like what I'm looking for. Does it work something like the following? 1. Enter date at a particular place 2. Cookie is set 3. You can browse whereever you like at it will be exactly as it was
It does not implement 1 and 2 but you can get 3. It is part of a versioning system for complex objects (hierarchically structured SGML/XML objects). If "obj" is an object and "ts" a timestamp, then "obj/HistoricalRevisions/ts" (or similar) is the object as it has been at time "ts". The application must take care to add "HistoricalRevisions/ts" for its links.
Is it possible to have a look at the code? Attached.
... Does anyone have an idea of how hard this would be to do? Basically what I'm proposing is 1. Ability to mount two or more databases, each of which is the same DB just at a different slice of time e.g. 1 week
The mounting is easy. Unless, you are on Windows, the slicing, too, is easy. You just copy "Data.fs" at appropriate times (you will probably need to restart Zope to make new slices available.
2. Ability to slice a DB in half. The back half is essentially rolled back and the front half is compacted so when joined they have the complete history.
Look at the "packing" process. What you have in mind is about as complex. -- Dieter
----- Original Message ----- From: "Dieter Maurer" <dieter@handshake.de> To: "Dylan Jay" <gmane@dylanjay.com> Cc: <zope-cmf@zope.org>; <zope-dev@zope.org> Sent: Wednesday, May 05, 2004 5:13 AM Subject: Re: [Zope-CMF] Re: Date based snapshots
Dylan Jay wrote at 2004-5-4 09:28 +1000:
...
I have a specialized connection that lets you see all objects as they have been at a given time -- provided this information is still there. It gives you a POSKeyError, when this is not the case.
This sounds like what I'm looking for. Does it work something like the following? 1. Enter date at a particular place 2. Cookie is set 3. You can browse whereever you like at it will be exactly as it was
It does not implement 1 and 2 but you can get 3.
It is part of a versioning system for complex objects (hierarchically structured SGML/XML objects). If "obj" is an object and "ts" a timestamp, then "obj/HistoricalRevisions/ts" (or similar) is the object as it has been at time "ts". The application must take care to add "HistoricalRevisions/ts" for its links.
I wonder how hard it would be to make it work like Versions work?
Does anyone have an idea of how hard this would be to do? Basically what I'm proposing is 1. Ability to mount two or more databases, each of which is the same DB just at a different slice of time e.g. 1 week
The mounting is easy.
Unless, you are on Windows, the slicing, too, is easy. You just copy "Data.fs" at appropriate times (you will probably need to restart Zope to make new slices available.
2. Ability to slice a DB in half. The back half is essentially rolled back and the front half is compacted so when joined they have the complete history.
Look at the "packing" process. What you have in mind is about as complex.
It looks like serious Voodoo to me. But I guess it's nice to know it's technically feasable. I haven't been keeping up with roadmaps etc but does this fit in with where ZODB is heading or is the whole lot being replaced with another versioning system that could handle my demands?
participants (3)
-
Dieter Maurer -
Dylan Jay -
Dylan Jay