

def get_class(self, f):
    name = f.build.__name__
    _class = 'type-text'
    for (k, v) in self.field_classes.items():
        if (name in k):
            _class = v
            break
    return _class

dataset/ETHPy150Open limodou/uliweb/uliweb/form/template_layout.py FormWriter.get_class/original