def _set_enum_list_local_type(self, specifications):
for rest_name, specification in specifications.items():<EOL><INDENT>for attribute in specification.attributes:<EOL><INDENT>if attribute.type == "<STR_LIT>":<EOL><INDENT>enum_type = attribute.local_name[<NUM_LIT:0>:<NUM_LIT:1>].upper() + attribute.local_name[<NUM_LIT:1>:]<EOL>attribute.local_type = enum_type<EOL><DEDENT>elif attribute.type == "<STR_LIT:object>":<EOL><INDENT>attr_type = "<STR_LIT>"<EOL>if self.attrs_types.has_option(specification.entity_name, attribute.local_name):<EOL><INDENT>type = self.attrs_types.get(specification.entity_name, attribute.local_name)<EOL>if type:<EOL><INDENT>attr_type = type<EOL><DEDENT><DEDENT>attribute.local_type = attr_type<EOL><DEDENT>elif attribute.type == "<STR_LIT:list>":<EOL><INDENT>if attribute.subtype == "<STR_LIT>":<EOL><INDENT>enum_subtype = attribute.local_name[<NUM_LIT:0>:<NUM_LIT:1>].upper() + attribute.local_name[<NUM_LIT:1>:]<EOL>attribute.local_type = "<STR_LIT>" + enum_subtype + "<STR_LIT:>>"<EOL><DEDENT>elif attribute.subtype == "<STR_LIT:object>":<EOL><INDENT>attr_subtype = "<STR_LIT>"<EOL>if self.attrs_types.has_option(specification.entity_name, attribute.local_name):<EOL><INDENT>subtype = self.attrs_types.get(specification.entity_name, attribute.local_name)<EOL>if subtype:<EOL><INDENT>attr_subtype = subtype<EOL><DEDENT><DEDENT>attribute.local_type = "<STR_LIT>" + attr_subtype + "<STR_LIT:>>"<EOL><DEDENT>elif attribute.subtype == "<STR_LIT>":<EOL><INDENT>attribute.local_type = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>attribute.local_type = "<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT>
This method is needed until get_type_name() is enhanced to include specification subtype and local_name