Ejemplo n.º 1
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)
Ejemplo n.º 2
0
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)
Ejemplo n.º 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])
Ejemplo n.º 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])
Ejemplo n.º 5
0
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)
Ejemplo n.º 6
0
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)
Ejemplo n.º 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)