

def create_enumtype(node, modelclass, metadata, row):
    enumtype = getattr(types, metadata.coltype)
    value = int(getattr(row, metadata.colname))
    return node.add_radiobuttons(modelclass.colname, enumtype.get_choices(), checked=value, class_='radioset')

dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py create_enumtype/VarMisuse@46/55 `metadata`->`modelclass`