示例#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