Mercurial > p > roundup > code
diff roundup/backends/__init__.py @ 1165:14467c765167
sqlite backend!
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 18 Sep 2002 05:07:49 +0000 |
| parents | 32e41ddf2edb |
| children | 268a443067fb |
line wrap: on
line diff
--- a/roundup/backends/__init__.py Wed Sep 18 01:33:49 2002 +0000 +++ b/roundup/backends/__init__.py Wed Sep 18 05:07:49 2002 +0000 @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.16 2002-09-10 00:11:49 richard Exp $ +# $Id: __init__.py,v 1.17 2002-09-18 05:07:47 richard Exp $ __all__ = [] @@ -46,6 +46,15 @@ __all__.append('gadfly') try: + import sqlite +except ImportError, message: + if str(message) != 'No module named sqlite': raise +else: + import back_sqlite + sqlite = back_sqlite + __all__.append('sqlite') + +try: import bsddb except ImportError, message: if str(message) != 'No module named bsddb': raise
