

def create_input(node, modelclass, metadata, row):
    ctor = _CONSTRUCTORS.get(metadata.coltype)
    if ctor:
        node = ctor(node, modelclass, metadata, row)
        node.class_ = metadata.coltype
    else:
        node.new_para(('No entry for type %r.' % (metadata.colname,)), class_='error')

dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py create_input/original