Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 2812:66db6834fcd5
remove bsddb, bsddb3 backends
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 24 Oct 2004 08:23:16 +0000 |
| parents | 3f89c8ffe4f1 |
| children | adec352e2ce0 |
comparison
equal
deleted
inserted
replaced
| 2811:1de24e6178cf | 2812:66db6834fcd5 |
|---|---|
| 12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, | 12 # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
| 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.27 2004-04-05 23:43:03 richard Exp $ | 18 # $Id: __init__.py,v 1.28 2004-10-24 08:23:16 a1s 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. |
| 24 ''' | 24 ''' |
| 25 __docformat__ = 'restructuredtext' | 25 __docformat__ = 'restructuredtext' |
| 26 | 26 |
| 27 __all__ = [] | 27 __all__ = [] |
| 28 | 28 |
| 29 for backend in ['anydbm', ('mysql', 'MySQLdb'), ('bsddb', '_bsddb'), | 29 for backend in ['anydbm', ('mysql', 'MySQLdb'), |
| 30 'bsddb3', 'sqlite', 'metakit', ('postgresql', 'psycopg')]: | 30 'sqlite', 'metakit', ('postgresql', 'psycopg')]: |
| 31 if len(backend) == 2: | 31 if len(backend) == 2: |
| 32 backend, backend_module = backend | 32 backend, backend_module = backend |
| 33 else: | 33 else: |
| 34 backend_module = backend | 34 backend_module = backend |
| 35 try: | 35 try: |
