docs: def asMIMEString(self):
          """
          Return a mime-multipart representation of:
          - callgrind profiling statistics (cachegrind.out.pprofile)
          - any SQL query issued via ZMySQLDA (query_*.sql)
          - any persistent object load via ZODB.Connection (ZODB_setstate.txt)
          - any path argument given to unrestrictedTraverse
            (unrestrictedTraverse_pathlist.txt)
          - all involved python code, including Python Scripts without hierarchy
            (the rest)
          To unpack resulting file, see "unpack a MIME message" in
            http://docs.python.org/2/library/email-examples.html
          Or get demultipart from
            https://pypi.python.org/pypi/demultipart
          """
          result = MIMEMultipart()
          base_type_dict = {
              'application': MIMEApplication,
              'text': MIMEText,
          }
          encoder_dict = {
              'application/x-kcachegrind': encode_quopri,
              'text/x-python': 'utf-8',
              'text/plain': 'utf-8',
          }
          for path, data, mimetype in self._iterOutFiles():
              base_type, sub_type = mimetype.split('/')
              chunk = base_type_dict[base_type](
                  data,
                  sub_type,
                  encoder_dict.get(mimetype),
              )
              chunk.add_header(
                  'Content-Disposition',
                  'attachment',
                  filename=path,
              )
              result.attach(chunk)
          return result.as_string(), result['content-type']