original_docstring: 
      Update supplied graph attribute to the given value. Changes will also be
      reflected back into enclosing graph JSON.
      :param graph_attribute: Object to update
      :param value:  Value to use
      
docstring: Update supplied graph attribute to the given value. Changes will also be
  reflected back into enclosing graph JSON.
docstring_tokens: Update supplied graph attribute to the given value . Changes will also be reflected back into enclosing graph JSON .
code: def __update_graph_attribute(graph_attribute, value):
      """
      Update supplied graph attribute to the given value. Changes will also be
      reflected back into enclosing graph JSON.
      :param graph_attribute: Object to update
      :param value:  Value to use
      """
      if not isinstance(graph_attribute, GraphAttrib):
          raise InvalidTypeException("Supplied object is not GraphAttrib")
  
      attrib_type = graph_attribute.attrib_fk.type_fk.raw_type
      if attrib_type == AttribTypeChoice.DICT:
          graph_attribute.value_str = json.dumps(value)
      else:
          graph_attribute.value_str = str(value)
  
      graph_attribute.save()
      graph = graph_attribute.graph_fk
      graph_attribute_json = json.loads(graph.attribute_json)
      graph_attribute_json[graph_attribute.attrib_fk.label] = \
          attrib_str_to_value(attrib_type, value)
      graph.attribute_json = json.dumps(graph_attribute_json)
      signals.post_save.disconnect(graph_saved, sender=Graph)
      graph.save()
      signals.post_save.connect(graph_saved, sender=Graph)
code_tokens: def __update_graph_attribute ( graph_attribute , value ) : if not isinstance ( graph_attribute , GraphAttrib ) : raise InvalidTypeException ( "Supplied object is not GraphAttrib" ) attrib_type = graph_attribute . attrib_fk . type_fk . raw_type if attrib_type == AttribTypeChoice . DICT : graph_attribute . value_str = json . dumps ( value ) else : graph_attribute . value_str = str ( value ) graph_attribute . save ( ) graph = graph_attribute . graph_fk graph_attribute_json = json . loads ( graph . attribute_json ) graph_attribute_json [ graph_attribute . attrib_fk . label ] = attrib_str_to_value ( attrib_type , value ) graph . attribute_json = json . dumps ( graph_attribute_json ) signals . post_save . disconnect ( graph_saved , sender = Graph ) graph . save ( ) signals . post_save . connect ( graph_saved , sender = Graph )
short_docstring: Update supplied graph attribute to the given value.
short_docstring_tokens: Update supplied graph attribute to the given value .
comment: """
      Update supplied graph attribute to the given value. Changes will also be
      reflected back into enclosing graph JSON.
      :param graph_attribute: Object to update
      :param value:  Value to use
      """