#NEWLINE# def _to_record( self , item , zone = None ) : #NEWLINE# #INDENT# extra = { #NEWLINE# #INDENT# 'ttl' : item [ 'ttl' ] , #NEWLINE# 'expire' : item [ 'expire' ] , #NEWLINE# 'mxPriority' : item [ 'mxPriority' ] , #NEWLINE# 'refresh' : item [ 'refresh' ] , #NEWLINE# 'retry' : item [ 'retry' ] , #NEWLINE# #UNINDENT# } #NEWLINE# record = Record ( id = item [ 'id' ] , name = item [ 'host' ] , type = self . _string_to_record_type ( item [ 'type' ] ) , data = item [ 'data' ] , zone = zone , driver = self , ttl = item [ 'ttl' ] , extra = extra ) #NEWLINE# return record