예제 #1
0
파일: examples.py 프로젝트: 0x68/corduroy
 def batch_get(self):
     db = Database('backbench')
     doc_ids = ['ballentine', 'holhurst', 'swain']
     docs = yield db.get(doc_ids)
     
     print docs[0]
예제 #2
0
    def batch_get(self):
        db = Database('backbench')
        doc_ids = ['ballentine', 'holhurst', 'swain']
        docs = yield db.get(doc_ids)

        print docs[0]
예제 #3
0
파일: examples.py 프로젝트: 0x68/corduroy
 def doc_get(self):
     db = Database('underlings')
     ollie = yield db.get('lackey-129')
     
     print ollie
     print 'Mr. %(first)s %(last)s can be found at %(office)s.' % ollie
예제 #4
0
    def doc_get(self):
        db = Database('underlings')
        ollie = yield db.get('lackey-129')

        print ollie
        print 'Mr. %(first)s %(last)s can be found at %(office)s.' % ollie