'Generates disabled html for a field'

def field_as_html(self, field):

    type = field['type']
    form_field = None
    for field_type in self.supported_field_types:
        if (type == field_type.__name__):
            form_field = field_type(type)
            break
    if form_field:
        return form_field.get_html(disabled=True)
    return None
