     m
 
   @from_html: () ->
-    form_name = @.form_name || @.name.replace(/([A-Z])/g, '-$1').replace(/^-/,"").toLowerCase()
+    #FIXME
+    form_name = @.form_name || @.name.replace(/([A-Z])/g, '_$1').replace(/^_/,"").toLowerCase()
 
     @.from_json(SiriusApplication.adapter.form_to_json("form[name='#{form_name}'"))
 

        else
          self["_#{attr}"] = null

    if Object.keys(obj).length != 0
      for attr in Object.keys(obj)
        do(attr) ->



  set: (attr, value) ->
    throw new Error("Attribute '#{attr}' not found for #{@normal_name().toUpperCase()} model") if @attributes.indexOf(attr) == -1

    # TODO validate value
    @["_#{attr}"] = value

  get: (attr) ->
    throw new Error("Attribute '#{attr}' not found for #{@normal_name().toUpperCase()} model") if @attributes.indexOf(attr) == -1

    @["_#{attr}"]

