def choicelist_choices():
    l = []
    for k, v in list(CHOICELISTS.items()):
        if v.verbose_name_plural is None:
            text = v.__name__
        else:
            text = v.verbose_name_plural
        l.append((k, text))
    l.sort(lambda a, b: cmp(a[0], b[0]))
    return l
Return a list of all choicelists defined for this application.
dataset/ETHPy150Open lsaffre/lino/lino/core/choicelists.py/choicelist_choices