(domain, doc_type, database=None)
return [row['id'] for row in database.view('by_domain_doc_type_date/view',
        startkey=[domain, doc_type],
        endkey=[domain, doc_type, {}],
        reduce=False,
        include_docs=False,
    )]
Given a domain and doc type, get all docs matching that domain and type
Given a domain and doc type, get all docs matching that domain and type
Given a domain and doc type get all docs matching that domain and type
def get_doc_ids_in_domain_by_type(domain, doc_type, database=None):
    """
    Given a domain and doc type, get all docs matching that domain and type
    """
    if not database:
        database = get_db_by_doc_type(doc_type)
    return [row['id'] for row in database.view('by_domain_doc_type_date/view',
        startkey=[domain, doc_type],
        endkey=[domain, doc_type, {}],
        reduce=False,
        include_docs=False,
    )]
def get_doc_ids_in_domain_by_type ( domain , doc_type , database = None ) : if not database : database = get_db_by_doc_type ( doc_type ) return [ row [ 'id' ] for row in database . view ( 'by_domain_doc_type_date/view' , startkey = [ domain , doc_type ] , endkey = [ domain , doc_type , { } ] , reduce = False , include_docs = False , ) ]