#NEWLINE# def _to_redirect( self , data , zone_id = None , zone = None ) : #NEWLINE# #INDENT# if ( not zone ) : #NEWLINE# #INDENT# zone = self . get_zone ( zone_id ) #NEWLINE# #UNINDENT# record = data . get ( 'zone_redirect' ) #NEWLINE# id = record . get ( 'id' ) #NEWLINE# name = record . get ( 'name' ) #NEWLINE# redirect_to = record . get ( 'redirect_to' ) #NEWLINE# type = record . get ( 'redirect_type' ) #NEWLINE# iframe = record . get ( 'iframe_title' ) #NEWLINE# query = record . get ( 'redirect_query_string' ) #NEWLINE# return Redirect ( data , name , redirect_to , type , self , zone , iframe = iframe , query = query )