Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/b/n/bnw-HEAD/bnw/handlers/command_clubs.py   bnw(Download)
        result = yield objs.Message.map_reduce(CLUBS_MAP, CLUBS_REDUCE, out='clubs')
    if (not rebuild) or result:
        clubs = list(x.doc for x in (yield objs.Club.find_sort({'$nor': [{'_id': '@'}, {'_id': ''}]}, [('value', -1)], limit=20)))
        defer.returnValue(dict(ok=True, format='clubs', clubs=clubs,
                          rebuilt=rebuild, cache=3600, cache_public=True))