Пример #1
0
def update_editions(work):
    """Adds add editions of this work to editions db.
    """
    seeds = engine.get_seeds(work)
    db = get_editions_db()

    for e in work['editions']:
        e = dict(e, seeds=seeds, _id=e['key'])
        _couch_save(db, e)
Пример #2
0
def update_editions(work):
    """Adds add editions of this work to editions db.
    """
    seeds = engine.get_seeds(work)
    db = get_editions_db()

    for e in work['editions']:
        e = dict(e, seeds=seeds, _id=e['key'])
        _couch_save(db, e)
Пример #3
0
def update_seeds(work):
    seeds = engine.get_seeds(work)
    logger.info("updating seeds: %s", seeds)
    get_seeds_engine().update_seeds(seeds)
Пример #4
0
def update_seeds(work):
    seeds = engine.get_seeds(work)
    logger.info("updating seeds: %s", seeds)
    get_seeds_engine().update_seeds(seeds)