Mercurial > p > roundup > code
view roundup/backends/__init__.py @ 1926:3bdd34547fa7
Remove implementations of Class.getnode from back_anydbm and rdbms_common...
...it's already in hyperdb.Class.
Implementations of hyperdb.Database do need to implement the getnode
method themselves.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Sun, 16 Nov 2003 18:41:40 +0000 |
| parents | f63aa57386b0 |
| children | fc52d57c6c3e |
line wrap: on
line source
# # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/) # This module is free software, and you may redistribute it and/or modify # under the same terms as Python, so long as this copyright message and # disclaimer are retained in their original form. # # IN NO EVENT SHALL BIZAR SOFTWARE PTY LTD BE LIABLE TO ANY PARTY FOR # DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING # OUT OF THE USE OF THIS CODE, EVEN IF THE AUTHOR HAS BEEN ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # BIZAR SOFTWARE PTY LTD SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # # $Id: __init__.py,v 1.25 2003-10-25 22:53:26 richard Exp $ ''' Container for the hyperdb storage backend implementations. The __all__ variable is constructed containing only the backends which are available. ''' __all__ = [] for backend in ['anydbm', ('mysql', 'MySQLdb'), 'bsddb', 'bsddb3', 'sqlite', 'metakit', ('postgresql', 'psycopg')]: if len(backend) == 2: backend, backend_module = backend else: backend_module = backend try: globals()[backend] = __import__('back_%s'%backend, globals()) __all__.append(backend) except ImportError, e: if not str(e).startswith('No module named %s'%backend_module): raise # vim: set filetype=python ts=4 sw=4 et si
