comparison roundup/backends/__init__.py @ 3727:04dee2ac29e2

sqlite module detection was broken for python 2.5 compiled w/o sqlite support
author Richard Jones <richard@users.sourceforge.net>
date Mon, 09 Oct 2006 23:49:32 +0000
parents 6a96ad643629
children 9997b941dd6d
comparison
equal deleted inserted replaced
3726:b11142bb2aa2 3727:04dee2ac29e2
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.38 2006-10-04 02:58:10 richard Exp $ 18 # $Id: __init__.py,v 1.39 2006-10-09 23:49:32 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
29 # Otherwise the error is reraised. 29 # Otherwise the error is reraised.
30 _modules = { 30 _modules = {
31 'mysql': ('MySQLdb',), 31 'mysql': ('MySQLdb',),
32 'postgresql': ('psycopg',), 32 'postgresql': ('psycopg',),
33 'tsearch2': ('psycopg',), 33 'tsearch2': ('psycopg',),
34 'sqlite': ('pysqlite', 'pysqlite2', 'sqlite3'), 34 'sqlite': ('pysqlite', 'pysqlite2', 'sqlite3', '_sqlite3'),
35 } 35 }
36 36
37 def get_backend(name): 37 def get_backend(name):
38 '''Get a specific backend by name.''' 38 '''Get a specific backend by name.'''
39 vars = globals() 39 vars = globals()

Roundup Issue Tracker: http://roundup-tracker.org/