durusmail: quixote-users: Session persistence for Quixote 2.0
Session persistence for Quixote 2.0
2005-05-26
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-28
2005-05-29
2005-05-29
2005-05-29
2005-05-28
2005-05-28
2005-05-29
2005-05-29
Sessions in mod_python (was [Quixote-users] Session persistence...
2005-05-29
Session persistence for Quixote 2.0
Roger E. Masse
2005-05-27
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
reply