示例#1
0
文件: tasks.py 项目: potch/zamboni
def index_users(ids, **kw):
    task_log.debug("Indexing users %s-%s [%s]." % (ids[0], ids[-1], len(ids)))
    index = kw.pop("index", None)
    index_objects(ids, UserProfile, search, index)
示例#2
0
文件: tasks.py 项目: rhelmer/zamboni
def index_addons(ids, **kw):
    log.info("Indexing addons %s-%s. [%s]" % (ids[0], ids[-1], len(ids)))
    transforms = (attach_categories, attach_devices, attach_prices, attach_tags, attach_translations)
    index_objects(ids, Addon, search, kw.pop("index", None), transforms)
示例#3
0
def index_collections(ids, **kw):
    log.debug('Indexing collections %s-%s [%s].' % (ids[0], ids[-1], len(ids)))
    index = kw.pop('index', None)
    index_objects(ids, Collection, search, index, [attach_translations])
示例#4
0
def index_collections(ids, **kw):
    log.debug('Indexing collections %s-%s [%s].' % (ids[0], ids[-1], len(ids)))
    index = kw.pop('index', None)
    index_objects(ids, Collection, search, index, [attach_translations])
示例#5
0
文件: tasks.py 项目: flyun/zamboni
def index_addons(ids, **kw):
    log.info('Indexing addons %s-%s. [%s]' % (ids[0], ids[-1], len(ids)))
    transforms = (attach_categories, attach_devices, attach_prices,
                  attach_tags, attach_translations)
    index_objects(ids, Addon, search, kw.pop('index', None), transforms)
示例#6
0
文件: tasks.py 项目: ddurst/olympia
def index_addons(ids, **kw):
    log.info('Indexing addons %s-%s. [%s]' % (ids[0], ids[-1], len(ids)))
    transforms = (attach_categories, attach_tags, attach_translations)
    index_objects(ids, Addon, search, kw.pop('index', None), transforms,
                  Addon.with_unlisted)
示例#7
0
def index_users(ids, **kw):
    task_log.debug('Indexing users %s-%s [%s].' % (ids[0], ids[-1], len(ids)))
    index = kw.pop('index', None)
    index_objects(ids, UserProfile, search, index)