Re: [Zope-dev] Versions (still)

2001-10-24 Thread Oliver Bleutgen
So there I was in this discussion about Zope versioning (again) and there were two features requested that seemed perfectly reasonable at the time, - to have a list of all the objects changed by a version Sorry if this is obvious, but at least neither ZopeFind nor locked_in_version() seem

Re: [Zope-dev] Versions (still)

2001-10-24 Thread Andy McKay
dtml-in ZopeFind(PARENTS[-1],search_sub=1,obj_expr='locked_in_version()') LIfound dtml-var title_or_id html_quote in Version dtml-var locked_in_version /dtml-in Yep I've done that, but looking through every object to see if its in the version rather than examining the versions seems some what

[Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay
So there I was in this discussion about Zope versioning (again) and there were two features requested that seemed perfectly reasonable at the time, - to have a list of all the objects changed by a version - to be able to individually commit or discard changes in a version on a per object basis

Re: [Zope-dev] Versions (still)

2001-10-23 Thread Tim McLaughlin
Andy McKay wrote: So there I was in this discussion about Zope versioning (again) and there were two features requested that seemed perfectly reasonable at the time, - to have a list of all the objects changed by a version - to be able to individually commit or discard changes in a

Re: [Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay
And regrettably, the only idea I have come up with is copying attributes from one version into another, or disgusting things like that. I haven't implemented anything because it sounds too icky, and I keep thinking there's gotta be a better way :) You can actually search every object in the

Re: [Zope-dev] Versions (still)

2001-10-23 Thread R. David Murray
On Tue, 23 Oct 2001, Andy McKay wrote: and got into ZODB stuff I didnt understand. I would have thought having a little refactoring to give two more methods: getVersionContents and commitObject would be possible, but Im scratching my head at FileStorage now. To my understanding, versions are

Re: [Zope-dev] Versions (still)

2001-10-23 Thread Andy McKay
To my understanding, versions are implemented as long running transactions against the ZODB. So I think to do anything with them you have to put in hooks at the level of the ZODB transaction machinery. That might have some interesting byproducts if you were to do it grin. The zodb-dev list