• Barry Warsaw's avatar
    Here's a principled way to determine whether the BDBStorages are · f784f9a8
    Barry Warsaw authored
    available or not, and also fixes to all the tests so they won't crap
    out or complain if not.
    
    To test whether these storages are avialable (including all package
    dependencies), do:
    
    import BDBStorage
    if BDBStorage.is_available:
        # okay to use
    
    Also, in BDBStorage/__init__.py do some cross-platform compatibility
    for the bsddb module; in Python 2.3 we can just use the built-in
    module, but in earlier Pythons we have to use bsddb3.  Now you can
    just use "from BDBStorage import db" to get the proper db object.
    f784f9a8
testStorageConfig.py 6.2 KB