0001from sqlobject.dbconnection import registerConnection
0002#import mysqltypes
0003
0004def builder():
0005    import mysqlconnection
0006    return mysqlconnection.MySQLConnection
0007
0008def isSupported():
0009    try:
0010        import MySQLdb
0011    except ImportError:
0012        return False
0013    return True
0014
0015registerConnection(['mysql'], builder, isSupported)