diff roundup/backends/__init__.py @ 1873:f63aa57386b0

Backend improvements. - using Zope3's test runner now, allowing GC checks, nicer controls and coverage analysis - all RDMBS backends now have indexes on several columns - added testing of schema mutation, fixed rdbms backends handling of a couple of cases - !BETA! added postgresql backend, needs work !BETA!
author Richard Jones <richard@users.sourceforge.net>
date Sat, 25 Oct 2003 22:53:26 +0000
parents bd127cafe3a8
children fc52d57c6c3e
line wrap: on
line diff
--- a/roundup/backends/__init__.py	Sat Oct 25 12:33:11 2003 +0000
+++ b/roundup/backends/__init__.py	Sat Oct 25 22:53:26 2003 +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.24 2003-09-14 18:55:37 jlgijsbers Exp $
+# $Id: __init__.py,v 1.25 2003-10-25 22:53:26 richard Exp $
 
 ''' Container for the hyperdb storage backend implementations.
 
@@ -26,16 +26,16 @@
 __all__ = []
 
 for backend in ['anydbm', ('mysql', 'MySQLdb'), 'bsddb', 'bsddb3', 'sqlite',
-                'metakit']:
+                'metakit', ('postgresql', 'psycopg')]:
     if len(backend) == 2:
         backend, backend_module = backend
     else:
         backend_module = backend
     try:
-        globals()[backend] = __import__('back_%s' % backend, globals())
+        globals()[backend] = __import__('back_%s'%backend, globals())
         __all__.append(backend)
     except ImportError, e:
-        if not str(e).startswith('No module named %s' % backend_module):
+        if not str(e).startswith('No module named %s'%backend_module):
             raise
 
 # vim: set filetype=python ts=4 sw=4 et si

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