#NEWLINE# def render_choice_object( self , c ) : #NEWLINE# #INDENT# if ( c is None ) : #NEWLINE# #INDENT# return str ( None ) #NEWLINE# #UNINDENT# if ( self . ranges is None ) : #NEWLINE# #INDENT# return c . display ( ) #NEWLINE# #UNINDENT# if ( len ( c . values ) == 1 ) : #NEWLINE# #INDENT# return c . display ( ) #NEWLINE# #UNINDENT# for r in self . ranges : #NEWLINE# #INDENT# if ( ( r [ 0 ] == c . values [ 0 ] . value ) and ( self [ 1 ] == c . values [ 1 ] . value ) ) : #NEWLINE# #INDENT# if ( len ( r ) > 2 ) : #NEWLINE# #INDENT# return r [ 2 ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return c . display ( ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return c . display ( )