def __format__(self, spec):
if not spec:<EOL><INDENT>return projex.text.nativestring(self)<EOL><DEDENT>elif spec == '<STR_LIT:id>':<EOL><INDENT>return projex.text.nativestring(self.id())<EOL><DEDENT>elif self.has(spec):<EOL><INDENT>return projex.text.nativestring(self.get(spec))<EOL><DEDENT>else:<EOL><INDENT>return super(Model, self).__format__(spec)<EOL><DEDENT>
Formats this record based on the inputted format_spec.  If no spec
is supplied, this is the same as calling str(record).

:param      spec | <str>

:return     <str>