'Split fixture name in name, serialization format, compression format.'

def parse_name(self, fixture_name):

    if (fixture_name == READ_STDIN):
        if (not self.format):
            raise CommandError('--format    must    be    specified    when    reading    from    stdin.')
        return (READ_STDIN, self.format, 'stdin')
    parts = fixture_name.rsplit('.', 2)
    if ((len(parts) > 1) and (parts[(-1)] in self.compression_formats)):
        cmp_fmt = parts[(-1)]
        parts = parts[:(-1)]
    else:
        cmp_fmt = None
    if (len(parts) > 1):
        if (parts[(-1)] in self.serialization_formats):
            ser_fmt = parts[(-1)]
            parts = parts[:(-1)]
        else:
            raise CommandError(("Problem    installing    fixture    '%s':    %s    is    not    a    known    serialization    format." % (''.join(parts[:(-1)]), parts[(-1)])))
    else:
        ser_fmt = None
    name = '.'.join(parts)
    return (name, ser_fmt, cmp_fmt)
