def get_value_text(self, v, obj):
        # v = self.full_value_from_object(None,obj)
        if v is None or v == '':
            return (None, None)
        if obj is not None:
            ch = obj.__class__.get_chooser_for_field(self.field.name)
            if ch is not None:
                return (v, ch.get_text_for_value(v, obj))
        for i in self.field.choices:
            if i[0] == v:
                # return (v, i[1].encode('utf8'))
                return (v, i[1])
        return (v, _("%r (invalid choice)") % v)
dataset/ETHPy150Open lsaffre/lino/lino/core/store.py/ComboStoreField.get_value_text/original