summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f5eef86)
raw | patch | inline | side by side (parent: f5eef86)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 30 Jul 2001 03:52:16 +0000 (03:52 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 30 Jul 2001 03:52:16 +0000 (03:52 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@165 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/backends/__init__.py | patch | blob | history |
index d2b20d285b60e244c65e814e4735d5ca7dceaaeb..98bf8eb8218d0acab3295f8cc351e5125f4c5813 100644 (file)
-import back_bsddb; bsddb = back_bsddb
-import back_anydbm; anydbm = back_anydbm
+__all__ = []
+
+try:
+ import back_anydbm
+ anydbm = back_anydbm
+ del back_anydbm
+ __all__.append('anydbm')
+except:
+ pass
+
+try:
+ import back_bsddb
+ bsddb = back_bsddb
+ del back_bsddb
+ __all__.append('bsddb')
+except:
+ pass
+
+try:
+ import back_bsddb3
+ bsddb3 = back_bsddb3
+ del back_bsddb3
+ __all__.append('bsddb3')
+except:
+ pass
-__all__ = ['bsddb', 'anydbm']