def create_mappings(self, config):
mappings = {}<EOL>for name, cfg in config.items():<EOL><INDENT>if name in CONFIG_SPECIAL_SECTIONS:<EOL><INDENT>continue<EOL><DEDENT>color = self.get_config_attribute(name, "<STR_LIT>")<EOL>if hasattr(color, "<STR_LIT>"):<EOL><INDENT>color = None<EOL><DEDENT>mappings[name] = color<EOL><DEDENT>self.mappings_color = mappings<EOL>
Create any mappings needed for global substitutions eg. colors