docs: def handle_cable(cable, handler, standalone=True):
      """\
      Emits event from the provided `cable` to the handler.
  
      `cable`
          A cable object.
      `handler`
          A ICableHandler instance.
      `standalone`
          Indicates if a `start` and `end` event should be
          issued (default: ``True``).
          If `standalone` is set to ``False``, no ``handler.start()``
          and ``handler.end()`` event will be issued.
      """
      def datetime(dt):
          date, time = dt.split(u' ')
          if len(time) == 5:
              time += u':00'
          time += u'Z'
          return u'T'.join([date, time])
      if standalone:
          handler.start()
      handler.start_cable(cable.reference_id, cable.canonical_id)
      for iri in cable.wl_uris:
          handler.handle_wikileaks_iri(iri)
      handler.handle_creation_datetime(datetime(cable.created))
      if cable.released:
          handler.handle_release_date(cable.released[:10])
      if cable.nondisclosure_deadline:
          handler.handle_nondisclosure_deadline(cable.nondisclosure_deadline)
      if cable.transmission_id:
          handler.handle_transmission_id(cable.transmission_id)
      if cable.subject:
          handler.handle_subject(cable.subject)
      if cable.summary:
          handler.handle_summary(cable.summary)
      if cable.comment:
          handler.handle_comment(cable.comment)
      handler.handle_header(cable.header)
      handler.handle_content(cable.content)
      handler.handle_origin(cable.origin)
      handler.handle_classification(cable.classification)
      handler.handle_partial(cable.partial)
      for cat in cable.classification_categories:
          handler.handle_classification_category(cat)
      for classificationist in cable.classificationists:
          handler.handle_classificationist(classificationist)
      for signer in cable.signers:
          handler.handle_signer(signer)
      for tag in cable.tags:
          handler.handle_tag(tag)
      for iri in cable.media_uris:
          handler.handle_media_iri(iri)
      for rec in cable.recipients:
          handler.handle_recipient(rec)
      for rec in cable.info_recipients:
          handler.handle_info_recipient(rec)
      for ref in cable.references:
          handler.handle_reference(ref)
      handler.end_cable()
      if standalone:
          handler.end()