'Return a shorter \'id\' associated with ``id``.'

def get_short_id(self, id):

    try:
        sid = self.short_ids[id]
    except KeyError:
        sid = hex(len(self.short_ids))[2:]
        self.short_ids[id] = sid
    return sid
