messages/_config.py
def write_data(msg_type, profile_name, data, cfg):
    """
    Write the settings into the data portion of the cfg.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :cfg: (jsonconfig.Config) config instance.
    """
    if profile_name not in cfg.data:
        cfg.data[profile_name] = {}
    cfg.data[profile_name][msg_type] = data
def write_data(msg_type, profile_name, data, cfg):
    """
    Write the settings into the data portion of the cfg.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :cfg: (jsonconfig.Config) config instance.
    """
    if profile_name not in cfg.data:
        cfg.data[profile_name] = {}
    cfg.data[profile_name][msg_type] = data
Write the settings into the data portion of the cfg.

    Args:
        :msg_type: (str) message type to create config entry.
        :profile_name: (str) name of the profile entry
        :data: (dict) dict values for the 'settings'
        :cfg: (jsonconfig.Config) config instance.