'Return a unique id for name.'

def make_id(self, name):

    id = self.id_cache.get(name)
    if (not id):
        id = ('epub-%d' % self.env.new_serialno('epub'))
        self.id_cache[name] = id
    return id
