#NEWLINE# def _list_records( self , uri ) : #NEWLINE# #INDENT# ( resp , body ) = self . _retry_get ( uri ) #NEWLINE# self . _reset_paging ( 'record' , dom_id ) #NEWLINE# pat = 'domains/([^/]+)/records' #NEWLINE# mtch = re . search ( pat , uri ) #NEWLINE# dom_id = mtch . groups ( ) [ 0 ] #NEWLINE# records = body . get ( 'records' , [ ] ) #NEWLINE# for record in records : #NEWLINE# #INDENT# record [ 'domain_id' ] = dom_id #NEWLINE# #UNINDENT# return [ CloudDNSRecord ( self , record , loaded = False ) for record in records if record ]