0001from sqlobject.dbconnection import registerConnection
0002
0003def builder():
0004    import sqliteconnection
0005    return sqliteconnection.SQLiteConnection
0006
0007def isSupported():
0008    try:
0009        from pysqlite2 import dbapi2 as sqlite
0010    except ImportError:
0011        try:
0012            import sqlite
0013        except ImportError:
0014            return False
0015    return True
0016
0017registerConnection(['sqlite'], builder, isSupported)