Mike Orr writes:
> I think Titus was talking about the ominous warning in the Durus docs
> about "cannot be used from multiple threads in a single process". Which
> brings up a related question I've been pondering. How do you migrate
> data between Durus and ZODB? I may want to use Durus but I'm concerned
> about that thread limitation. Not that it matters now but it may in the
> future. I notice Durus classes are persistent through a persistent
> mixin, while ZODB classes are persistent through a different mixin. If
> I do need to port a Durus database to ZODB, do I have to create a
> parallel tree of objects and copy the attributes from each object to the
> other, or is there an easier way?
Mike --
The transaction format between durus and zodb is slightly different.
However, there is a script in the Durus distribution:
http://www.mems-
exchange.org/software/durus/Durus-2.0.tar.gz/Durus-2.0/convert_zodb.py
....that converts a zodb database to durus format. It's a pretty short
script that would be easy to hack to make the conversion happen in the other
direction.
Regards,
Roger E. Masse - Software Engineer
MEMS Exchange - Corporation for National Research Initiatives
1895 Preston White Drive Suite 100, Reston Virginia USA 20191