Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(4) | Call(4) | Derive(0) | Import(0)
src/b/n/bnw-HEAD/bnw/handlers/command_userinfo.py bnw(Download)
if not user_obj: defer.returnValue(dict(ok=False, desc='User not found.')) subscribers = yield objs.Subscription.find(dict( target=user, type='sub_user')) subscribers = set([x['user'] for x in subscribers]) subscriptions = yield objs.Subscription.find(dict(
src/b/n/bnw-HEAD/bnw/handlers/command_show.py bnw(Download)
user = request.user['name'] ids = [m['id'] for m in messages] subscriptions = yield objs.Subscription.find({ 'user': user, 'type': 'sub_message', 'target': {'$in': ids}}) sub_ids = [s['target'] for s in subscriptions]
src/b/n/bnw-HEAD/bnw/handlers/command_subscription.py bnw(Download)
dict(ok=True, format="subscriptions", subscriptions=[x.filter_fields() for x in (yield objs.Subscription.find({'user': request.user['name'], 'type':{'$ne': 'sub_message'}})) ])