messages/_config.py
def create_config_profile(msg_type):
    """
    Create a profile for the given message type.

    Args:
        :msg_type: (str) message type to create config entry.
    """
    msg_type = msg_type.lower()

    if msg_type not in CONFIG.keys():
        raise UnsupportedMessageTypeError(msg_type)

    display_required_items(msg_type)

    if get_user_ack():
        profile_name = input("Profile Name: ")
        data = get_data_from_user(msg_type)
        auth = get_auth_from_user(msg_type)
        configure_profile(msg_type, profile_name, data, auth)
def create_config_profile(msg_type):
    msg_type = msg_type.lower()

    if msg_type not in CONFIG.keys():
        raise UnsupportedMessageTypeError(msg_type)

    display_required_items(msg_type)

    if get_user_ack():
        profile_name = input("Profile Name: ")
        data = get_data_from_user(msg_type)
        auth = get_auth_from_user(msg_type)
        configure_profile(msg_type, profile_name, data, auth)
def create_config_profile ( msg_type ) : msg_type = msg_type . lower ( ) if msg_type not in CONFIG . keys ( ) : raise UnsupportedMessageTypeError ( msg_type ) display_required_items ( msg_type ) if get_user_ack ( ) : profile_name = input ( "Profile Name: " ) data = get_data_from_user ( msg_type ) auth = get_auth_from_user ( msg_type ) configure_profile ( msg_type , profile_name , data , auth )
Create a profile for the given message type.

    Args:
        :msg_type: (str) message type to create config entry.
Create a profile for the given message type .