@classmethod
    def get_text_for_value(self, value):
        bc = self.get_by_value(value)
        if bc is None:
            return _("%(value)r (invalid choice for %(list)s)") % dict(
                list=self.__name__, value=value)
        return self.display_text(bc)
Return the text corresponding to the specified value.
dataset/ETHPy150Open lsaffre/lino/lino/core/choicelists.py/ChoiceList.get_text_for_value