(doc_type)
Lookup a database by document type. Returns None if the database is not found.
Lookup a database by document type. Returns None if the database is not found.
Lookup a database by document type . Returns None if the database is not found .
def get_db_by_doc_type(doc_type):
    """
    Lookup a database by document type. Returns None if the database is not found.
    """
    try:
        return get_document_class_by_doc_type(doc_type).get_db()
    except DocumentClassNotFound:
        return None
def get_db_by_doc_type ( doc_type ) : try : return get_document_class_by_doc_type ( doc_type ) . get_db ( ) except DocumentClassNotFound : return None