Commit 55d9456b authored by Jeremy Hylton's avatar Jeremy Hylton

Merge zope3-zodb3-devel-branch to the Zope head (Zope 2 head).

Add support for persistent weak references.  The implementation is in
pure Python right now; coptimizations.c was disabled.  We need to
restore the C code before going to beta.

The persistent reference format has evolved a little, but the code on
the branch doesn't document it.  The ref is usually a an oid-class
pair, where the class is an actual class object.  It can also be a
list, for weak references, or a bare oid.

Add support for data managers written against the ZODB4 transaction
API.  The transaction implementation provides an adapter between the
two interfaces.  There's a substantial doctest test suite for this
feature.

Add add() method to Connection to explicitly add an object and get it
an assigned _p_oid.  It's possible to add an unconnected object; this
isn't recommended, because it will be lost at pack time.
parent 9b3c05f0
...@@ -579,9 +579,10 @@ setup( ...@@ -579,9 +579,10 @@ setup(
Extension(name='persistent.TimeStamp', Extension(name='persistent.TimeStamp',
include_dirs=['persistent'], include_dirs=['persistent'],
sources=['persistent/TimeStamp.c']), sources=['persistent/TimeStamp.c']),
Extension(name='ZODB.coptimizations', # XXX We need to rewrite this soon.
include_dirs=['persistent'], ## Extension(name='ZODB.coptimizations',
sources=['ZODB/coptimizations.c']), ## include_dirs=['persistent'],
## sources=['ZODB/coptimizations.c']),
Extension(name='ZODB.winlock', Extension(name='ZODB.winlock',
include_dirs=['persistent'], include_dirs=['persistent'],
sources=['ZODB/winlock.c'])], sources=['ZODB/winlock.c'])],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment