示例#1
0
def process(slug):
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    process_collection.delay(source.slug)
    return jsonify({'status': 'ok'})
示例#2
0
def process(collection_name, force=False):
    """ Index all documents in the given collection. """
    process_collection.delay(collection_name, overwrite=force)
示例#3
0
文件: manage.py 项目: nightsh/aleph
def process(collection_name, force=False):
    """ Index all documents in the given collection. """
    process_collection.delay(collection_name, overwrite=force)
示例#4
0
def process(slug):
    authz.require(authz.source_write(slug))
    source = obj_or_404(Source.by_slug(slug))
    process_collection.delay(source.slug)
    return jsonify({'status': 'ok'})