Commit 25c7b027 authored by Tres Seaver's avatar Tres Seaver

Merge r121798 from /ZODB/branches/jim-python-btrees.

Tests still don't pass. :(
parent 9c3125e9
......@@ -16,6 +16,11 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _IFBTree import *
try:
from _IFBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'IF', 120, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerFloatBTreeModule)
......@@ -16,6 +16,10 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _IIBTree import *
try:
from _IIBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'II', 120, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerIntegerBTreeModule)
......@@ -16,6 +16,10 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _IOBTree import *
try:
from _IOBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'IO', 60, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerObjectBTreeModule)
......@@ -15,7 +15,10 @@
import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _LFBTree import *
try:
from _LFBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'LF', 120, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerFloatBTreeModule)
......@@ -15,7 +15,10 @@
import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _LLBTree import *
try:
from _LLBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'LL', 120, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerIntegerBTreeModule)
......@@ -16,6 +16,10 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _LOBTree import *
try:
from _LOBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'LO', 60, 500)
zope.interface.moduleProvides(BTrees.Interfaces.IIntegerObjectBTreeModule)
......@@ -16,6 +16,10 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _OIBTree import *
try:
from _OIBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'OI', 60, 250)
zope.interface.moduleProvides(BTrees.Interfaces.IObjectIntegerBTreeModule)
......@@ -16,6 +16,10 @@ import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
from _OLBTree import *
try:
from _OLBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'OL', 60, 250)
zope.interface.moduleProvides(BTrees.Interfaces.IObjectIntegerBTreeModule)
......@@ -15,32 +15,10 @@
import zope.interface
import BTrees.Interfaces
# hack to overcome dynamic-linking headache.
try:
from _OOBTree import *
except ImportError:
import ___BTree
class _Base:
pass
class OOBucket(___BTree.Bucket, _Base):
MAX_SIZE = 30
_Base._mapping_type = OOBucket
class OOSet(___BTree.Set, _Base)):
MAX_SIZE = 30
_Base._set_type = OOSet
class OOBTree(___BTree.BTree, _Base)):
_bucket_type = OOBucket
MAX_SIZE = 250
class OOBTreeSet(___BTree.BTree, _Base)):
_bucket_type = OOSet
MAX_SIZE = 250
___BTree._import(globals(), 'OO', 30, 250)
zope.interface.moduleProvides(BTrees.Interfaces.IObjectObjectBTreeModule)
This diff is collapsed.
......@@ -16,4 +16,11 @@
# expected to be "public" excpect to FileStorage.
# hack to overcome dynamic-linking headache.
from _fsBTree import *
try:
from _fsBTree import *
except ImportError:
import ___BTree
___BTree._import(globals(), 'fs', 500, 500,
to_key=___BTree.to_str(2),
to_value=___BTree.to_str(6),
)
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