Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 3419:4aeb0d0cf0d6
pre-release stuff
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Fri, 07 Oct 2005 05:35:04 +0000 |
| parents | b286373a517f |
| children | bcebddf1351f |
comparison
equal
deleted
inserted
replaced
| 3418:9b8019f28158 | 3419:4aeb0d0cf0d6 |
|---|---|
| 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.34 2005-01-06 17:57:05 a1s Exp $ | 18 # $Id: __init__.py,v 1.35 2005-10-07 05:35:03 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 |
| 56 vars[name] = module | 56 vars[name] = module |
| 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': | |
| 62 return 0 | |
| 61 try: | 63 try: |
| 62 get_backend(name) | 64 get_backend(name) |
| 63 return 1 | 65 return 1 |
| 64 except ImportError, e: | 66 except ImportError, e: |
| 65 global _modules | 67 global _modules |
