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
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
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
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
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
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
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