docs: def update_attribute(attr,**kwargs):
      """
      Add a generic attribute, which can then be used in creating
      a resource attribute, and put into a type.
  
      .. code-block:: python
  
          (Attr){
              id = 1020
              name = "Test Attr"
              dimension_id = 123
          }
  
      """
  
      log.debug("Updating attribute: %s", attr.name)
      attr_i = _get_attr(attr.id)
      attr_i.name = attr.name
      attr_i.dimension_id = attr.dimension_id
      attr_i.description = attr.description
  
      #Make sure an update hasn't caused an inconsistency.
      #check_sion(attr_i.id)
  
      db.DBSession.flush()
      return JSONObject(attr_i)