def _write_model(self, specification, specification_set):
filename = "<STR_LIT>" % (self._class_prefix, specification.entity_name)<EOL>override_content = self._extract_override_content(specification.entity_name)<EOL>superclass_name = "<STR_LIT>" if specification.rest_name == self.api_root else "<STR_LIT>"<EOL>defaults = {}<EOL>section = specification.entity_name<EOL>if self.attrs_defaults.has_section(section):<EOL><INDENT>for attribute in self.attrs_defaults.options(section):<EOL><INDENT>defaults[attribute] = self.attrs_defaults.get(section, attribute)<EOL><DEDENT><DEDENT>self.write(destination=self.output_directory,<EOL>filename=filename,<EOL>template_name="<STR_LIT>",<EOL>specification=specification,<EOL>specification_set=specification_set,<EOL>version=self.api_version,<EOL>name=self._name,<EOL>class_prefix=self._class_prefix,<EOL>product_accronym=self._product_accronym,<EOL>override_content=override_content,<EOL>superclass_name=superclass_name,<EOL>header=self.header_content,<EOL>version_string=self._api_version_string,<EOL>package_name=self._package_name,<EOL>attribute_defaults=defaults)<EOL>return (filename, specification.entity_name)<EOL>
Write autogenerate specification file