

def build_edit_form(form, modelclass, row, error=None):
    BR = form.get_new_element('Br')
    if (error is not None):
        form.new_para(error, class_='error')
    outerfs = form.add_fieldset(form.__name__)
    for metadata in sorted(models.get_metadata(modelclass)):
        create_input(outerfs, modelclass, metadata, row)
        outerfs.append(BR)
    form.add_input(type='submit', name='submit', value='submit')

dataset/ETHPy150Open kdart/pycopia/storage/pycopia/db/webhelpers.py build_edit_form/VarMisuse@55/71 `modelclass`->`form`