#NEWLINE# def _to_record( self , item , zone = None ) : #NEWLINE# #INDENT# extra = { #NEWLINE# #INDENT# 'ttl' : item [ 'ttl' ] , #NEWLINE# #UNINDENT# } #NEWLINE# type = self . _string_to_record_type ( item [ 'type' ] ) #NEWLINE# name = item [ 'name' ] [ : ( ( - len ( zone . domain ) ) - 1 ) ] #NEWLINE# record = Record ( id = item [ 'id' ] , name = name , type = type , data = item [ 'content' ] , zone = zone , driver = self , ttl = item [ 'ttl' ] , extra = extra ) #NEWLINE# return record