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

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

src/b/n/bnw-HEAD/bnw/handlers/command_show.py   bnw(Download)
    if request.user:
        user = request.user['name']
        subscribed = yield objs.Subscription.count({
            'user': user, 'type': 'sub_message', 'target': msgid})
        message['subscribed'] = bool(subscribed)

src/b/n/bnw-HEAD/bnw/web/site.py   bnw(Download)
            if bl:
                qdict['user'] = {'$nin': bl}
            is_subscribed = yield objs.Subscription.count({
                'user': user['name'],
                'type': 'sub_message',