\
    Returns a cable from the provided row (a tuple/list).

    Format of the row:

        <identifier>, <creation-date>, <reference-id>, <origin>, <classification-level>, <references-to-other-cables>, <header>, <body>

    Note:
        The `<identifier>` and `<references-to-other-cables>` columns are ignored.

    `row`
        A tuple or list with 8 items.

def cable_from_row(row):
    """\
    Returns a cable from the provided row (a tuple/list).

    Format of the row:

        <identifier>, <creation-date>, <reference-id>, <origin>, <classification-level>, <references-to-other-cables>, <header>, <body>

    Note:
        The `<identifier>` and `<references-to-other-cables>` columns are ignored.

    `row`
        A tuple or list with 8 items.
    """
    def format_creation_date(created):
        date, time = created.split()
        month, day, year, hour, minute = [x.zfill(2) for x in chain(date.split(u'/'), time.split(u':'))]
        return u'%s-%s-%s %s:%s' % (year, month, day, hour, minute)
    _, created, reference_id, origin, classification, _, header, body = row
    cable = Cable(reference_id)
    cable.created = format_creation_date(created)
    cable.origin = origin
    cable.classification = classification.upper()
    cable.header = header
    cable.content = body
    return cable