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

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

src/b/n/bnw-HEAD/bnw/handlers/command_show.py   bnw(Download)
def showComment(commentid):
        comment = yield objs.Comment.find_one({'id': commentid})
        if comment is None:
            defer.returnValue(
                dict(ok=False, desc='No such comment',
        qdict['user'] = {'$nin': bl}
    if after:
        after_comment = yield objs.Comment.find_one({'id':msgid+'/'+after.split('/')[-1]})
        if after_comment:
            qdict['date'] = {'$gte': after_comment['date']}

src/b/n/bnw-HEAD/bnw/handlers/command_delete.py   bnw(Download)
    comment_id = message if len(splitpost) > 1 else None
    if comment_id:
        comment = yield objs.Comment.find_one({'id': comment_id, 'message': message_id})
    post = yield objs.Message.find_one({'id': message_id})
    if comment_id: