def check_config(self, config):
validation = "<STR_LIT>"<EOL>required = ["<STR_LIT:name>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>for config_item in required:<EOL><INDENT>if config_item not in config:<EOL><INDENT>validation += config_item.upper() + "<STR_LIT>"<EOL><DEDENT><DEDENT>if not validation:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>" + validation)<EOL><DEDENT>
Check the config file for required fields and validity.
@param config: The config dict.
@return: True if valid, error string if invalid paramaters where
encountered.