def update_field(field, value)
      case field.typology
      when 'text'
        update_field_text(field, value)
      when 'textarea'
        update_field_textarea(field, value)
      when 'datetime'
        update_field_datetime(field, value)
      when 'editor'
        update_field_editor(field, value)
      when 'geolocalization'
        update_field_geolocalization(field, value)
      when 'image'
        update_field_image(field, value)
      when 'gallery'
        update_field_gallery(field, value)
      when 'youtube'
        update_field_youtube(field, value)
      when 'composed'
        update_field_composed(field, value)
      when 'relay'
        update_field_relay(field, value)
      end
    end
def update_field(field, value)
      case field.typology
      when 'text'
        update_field_text(field, value)
      when 'textarea'
        update_field_textarea(field, value)
      when 'datetime'
        update_field_datetime(field, value)
      when 'editor'
        update_field_editor(field, value)
      when 'geolocalization'
        update_field_geolocalization(field, value)
      when 'image'
        update_field_image(field, value)
      when 'gallery'
        update_field_gallery(field, value)
      when 'youtube'
        update_field_youtube(field, value)
      when 'composed'
        update_field_composed(field, value)
      when 'relay'
        update_field_relay(field, value)
      end
    end
This function updates a single field from its key and value.