(data_type, analyst)
Add a new RawData datatype to CRITs.

    :param data_type: The new datatype to add.
    :type data_type: str
    :param analyst: The user adding the new datatype.
    :type analyst: str
    :returns: bool
Add a new RawData datatype to CRITs.
Add a new RawData datatype to CRITs .
def add_new_raw_data_type(data_type, analyst):
    """
    Add a new RawData datatype to CRITs.

    :param data_type: The new datatype to add.
    :type data_type: str
    :param analyst: The user adding the new datatype.
    :type analyst: str
    :returns: bool
    """

    data_type = data_type.strip()
    try:
        raw_data_type = RawDataType.objects(name=data_type).first()
        if raw_data_type:
            return False
        raw_data_type = RawDataType()
        raw_data_type.name = data_type
        raw_data_type.save(username=analyst)
        return True
    except ValidationError:
        return False
def add_new_raw_data_type ( data_type , analyst ) : data_type = data_type . strip ( ) try : raw_data_type = RawDataType . objects ( name = data_type ) . first ( ) if raw_data_type : return False raw_data_type = RawDataType ( ) raw_data_type . name = data_type raw_data_type . save ( username = analyst ) return True except ValidationError : return False