Exemple #1
0
 def batch_get(self):
     db = Database('backbench')
     doc_ids = ['ballentine', 'holhurst', 'swain']
     docs = yield db.get(doc_ids)
     
     print docs[0]
Exemple #2
0
    def batch_get(self):
        db = Database('backbench')
        doc_ids = ['ballentine', 'holhurst', 'swain']
        docs = yield db.get(doc_ids)

        print docs[0]
Exemple #3
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
Exemple #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