0001from sqlobject.dbconnection import registerConnection
0002
0003def builder():
0004    import maxdbconnection
0005    return maxdbconnection.MaxdbConnection
0006
0007def isSupported():
0008    try:
0009        import sapdb
0010    except ImportError:
0011        return False
0012    return True
0013
0014registerConnection(['maxdb','sapdb'],builder, isSupported)