Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 3503:bcebddf1351f
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Wed, 25 Jan 2006 03:24:09 +0000 |
| parents | 4aeb0d0cf0d6 |
| children | 0d561b24ceff |
comparison
equal
deleted
inserted
replaced
| 3501:90e2580f21b8 | 3503:bcebddf1351f |
|---|---|
| 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.35 2005-10-07 05:35:03 richard Exp $ | 18 # $Id: __init__.py,v 1.36 2006-01-25 03:24:09 richard Exp $ |
| 19 | 19 |
| 20 '''Container for the hyperdb storage backend implementations. | 20 '''Container for the hyperdb storage backend implementations. |
| 21 ''' | 21 ''' |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 57 return module | 57 return module |
| 58 | 58 |
| 59 def have_backend(name): | 59 def have_backend(name): |
| 60 '''Is backend "name" available?''' | 60 '''Is backend "name" available?''' |
| 61 if name == 'tsearch2': | 61 if name == 'tsearch2': |
| 62 # currently not working | |
| 62 return 0 | 63 return 0 |
| 63 try: | 64 try: |
| 64 get_backend(name) | 65 get_backend(name) |
| 65 return 1 | 66 return 1 |
| 66 except ImportError, e: | 67 except ImportError, e: |
