#NEWLINE# def render_option( self , selected_choices , option_value , option_label ) : #NEWLINE# #INDENT# option_value = force_text ( option_value ) #NEWLINE# if ( option_value in selected_choices ) : #NEWLINE# #INDENT# selected_html = ' selected="selected"' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# selected_html = '' #NEWLINE# #UNINDENT# disabled_html = '' #NEWLINE# if isinstance ( option_label , dict ) : #NEWLINE# #INDENT# if dict . get ( option_label , 'disabled' ) : #NEWLINE# #INDENT# disabled_html = ' disabled="disabled"' #NEWLINE# #UNINDENT# option_label = option_label [ 'label' ] #NEWLINE# #UNINDENT# return ( '<option value="%s"%s%s>%s</option>' % ( escape ( option_value ) , selected_html , disabled_html , conditional_escape ( force_text ( option_label ) ) ) )