Example #1
0
def enum(v, name='bill_type'):
    return load_enum(name).value(v).desc
Example #2
0
def test(v='save_money'):
    from mysite.fb_book.book.enum_code import enum as load_enum
    import logging
    logging.warning(load_enum("bill_type"))
    
    return load_enum("bill_type").value(v).desc