#NEWLINE# @ classmethod #NEWLINE# def by_domain( cls , domain , ids_only = False ) : #NEWLINE# #INDENT# result = cls . view ( 'phone_numbers/verified_number_by_domain' , startkey = [ domain ] , endkey = [ domain , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ] , include_docs = ( not ids_only ) , reduce = False ) . all ( ) #NEWLINE# if ids_only : #NEWLINE# #INDENT# return [ result [ 'id' ] for row in result ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return result