original_docstring: 
      Update supplied transaction attribute to the given value. Changes will also
      be reflected back into enclosing transaction JSON.
      :param transaction_attribute: Object to update
      :param value:  Value to use
      
docstring: Update supplied transaction attribute to the given value. Changes will also
  be reflected back into enclosing transaction JSON.
docstring_tokens: Update supplied transaction attribute to the given value . Changes will also be reflected back into enclosing transaction JSON .
code: def __update_transaction_attribute(transaction_attribute, value):
      """
      Update supplied transaction attribute to the given value. Changes will also
      be reflected back into enclosing transaction JSON.
      :param transaction_attribute: Object to update
      :param value:  Value to use
      """
      if not isinstance(transaction_attribute, TransactionAttrib):
          raise InvalidTypeException("Supplied object is not TransactionAttrib")
  
      attrib_type = transaction_attribute.attrib_fk.type_fk.type
      if attrib_type == AttribTypeChoice.DICT:
          transaction_attribute.value_str = json.dumps(value)
      else:
          transaction_attribute.value_str = str(value)
  
      transaction_attribute.save()
      transaction = transaction_attribute.transaction_fk
      transaction_attribute_json = json.loads(transaction.attribute_json)
      transaction_attribute_json[transaction_attribute.attrib_fk.label] = \
          attrib_str_to_value(attrib_type, value)
      transaction.attribute_json = json.dumps(transaction_attribute_json)
      transaction.save()
code_tokens: def __update_transaction_attribute ( transaction_attribute , value ) : if not isinstance ( transaction_attribute , TransactionAttrib ) : raise InvalidTypeException ( "Supplied object is not TransactionAttrib" ) attrib_type = transaction_attribute . attrib_fk . type_fk . type if attrib_type == AttribTypeChoice . DICT : transaction_attribute . value_str = json . dumps ( value ) else : transaction_attribute . value_str = str ( value ) transaction_attribute . save ( ) transaction = transaction_attribute . transaction_fk transaction_attribute_json = json . loads ( transaction . attribute_json ) transaction_attribute_json [ transaction_attribute . attrib_fk . label ] = attrib_str_to_value ( attrib_type , value ) transaction . attribute_json = json . dumps ( transaction_attribute_json ) transaction . save ( )
short_docstring: Update supplied transaction attribute to the given value.
short_docstring_tokens: Update supplied transaction attribute to the given value .
comment: """
      Update supplied transaction attribute to the given value. Changes will also
      be reflected back into enclosing transaction JSON.
      :param transaction_attribute: Object to update
      :param value:  Value to use
      """