durusmail: durus-users: Offline batch modifications
Offline batch modifications
2006-11-17
2006-11-17
2006-11-19
2006-11-20
2007-02-22
2007-02-22
2007-02-22
2007-02-22
Offline batch modifications
Paolo Losi
2006-11-19
Thanks David :-) very helpful

David Binger wrote:

> #initialize connection_to_old and connection_to_new
>
> from cPickle import dumps, loads
> btree = connection_to_old.get_root()['x']
> giant_pickle = dumps(btree_in_old, 2)
> new_btree = loads(giant_pickle)
> connection_to_new.get_root()['x'] = new_btree
> connection_to_new.commit()

That is perfect. Copying root on DB "A"
to DB "B" root['old_root'] is feasible as well?
If so, after the copy a can adjust references graph
at my will...

Do you know if this works for ZODB as well?

My last wish would be a ZODB -> Durus converter...
but I know that's not easy...


Thanks again
Paolo
reply