#NEWLINE# @ property #NEWLINE# def dns_entry( self ) : #NEWLINE# #INDENT# val = self . type_id #NEWLINE# for ( t , _ , props ) in Channel . TYPE_ID_CHOICES : #NEWLINE# #INDENT# if ( t == self . type_id ) : #NEWLINE# #INDENT# for v in props : #NEWLINE# #INDENT# if ( getattr ( self , v ) is not None ) : #NEWLINE# #INDENT# value = str ( getattr ( self , v ) ) . lower ( ) #NEWLINE# if ( v == 'ecc_id' ) : #NEWLINE# #INDENT# cc_obj = Ecc . query . filter_by ( id = value ) . first ( ) #NEWLINE# value = ( cc_obj . pi + cc_obj . ecc ) . lower ( ) #NEWLINE# #UNINDENT# val = ( ( value + '.' ) + val ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return val