@classmethod
    def get_by_value(self, value, *args):
        if not isinstance(value, basestring):
            raise Exception("%r is not a string" % value)
        #~ print "get_text_for_value"
        #~ return self.items_dict.get(value, None)
        #~ return self.items_dict.get(value)
        return self.items_dict.get(value, *args)

    #~ @classmethod
    #~ def items(self):
        #~ return [choice[0] for choice in self.choices]
Return documentation for a field in the representation.
dataset/ETHPy150Open lsaffre/lino/lino/core/choicelists.py/ChoiceList.get_by_value--crossover with--dataset/ETHPy150Open wuher/devil/devil/docs/resource.py/DocumentedResource._get_field_doc