Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 1528:96cd422532ef
bye bye gadfly - you served your purpose well [SF#701127]
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 18 Mar 2003 00:50:24 +0000 |
| parents | 4884fb0860f9 |
| children | 7625bf9feec1 |
comparison
equal
deleted
inserted
replaced
| 1525:c006e8166f81 | 1528:96cd422532ef |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: __init__.py,v 1.21 2003-01-12 23:53:19 richard Exp $ | 18 # $Id: __init__.py,v 1.22 2003-03-18 00:50:24 richard Exp $ |
| 19 | 19 |
| 20 ''' Container for the hyperdb storage backend implementations. | 20 ''' Container for the hyperdb storage backend implementations. |
| 21 | 21 |
| 22 The __all__ variable is constructed containing only the backends which are | 22 The __all__ variable is constructed containing only the backends which are |
| 23 available. | 23 available. |
| 39 if str(message) != 'No module named anydbm': raise | 39 if str(message) != 'No module named anydbm': raise |
| 40 else: | 40 else: |
| 41 import back_anydbm | 41 import back_anydbm |
| 42 anydbm = back_anydbm | 42 anydbm = back_anydbm |
| 43 __all__.append('anydbm') | 43 __all__.append('anydbm') |
| 44 | |
| 45 try: | |
| 46 import gadfly | |
| 47 import gadfly.client | |
| 48 except ImportError, message: | |
| 49 if str(message) == 'No module named client': | |
| 50 # don't keep the old gadfly around | |
| 51 del gadfly | |
| 52 elif str(message) != 'No module named gadfly': | |
| 53 raise | |
| 54 else: | |
| 55 import back_gadfly | |
| 56 gadfly = back_gadfly | |
| 57 __all__.append('gadfly') | |
| 58 | 44 |
| 59 try: | 45 try: |
| 60 import MySQLdb | 46 import MySQLdb |
| 61 except ImportError, message: | 47 except ImportError, message: |
| 62 if str(message) != 'No module named MySQLdb': raise | 48 if str(message) != 'No module named MySQLdb': raise |
