def render_option(self, selected_choices, option_value, option_label):
        option_value = force_unicode(option_value)
        selected_html = (option_value in selected_choices) and u' selected="selected"' or ''
        disabled_html = (int(option_value) in self.disabled_choices) and u' disabled="disabled"' or ''
        return u'<option value="%s"%s>%s</option>' % (
            escape(option_value), selected_html + disabled_html,
            conditional_escape(force_unicode(option_label)))
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/widgets.py/SelectWithDisabledOptions.render_option/original