def new_input(node, modelclass, metadata):
    ctor = _CREATORS.get(metadata.coltype)
    if ctor:
        node = ctor(node, modelclass, metadata)
        node.class_ = metadata.coltype
        #node.add2class(metadata.coltype)
    else:
        node.new_para("No entry for type %r." % (metadata.colname,), class_="error")
dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py/new_input/original