def batch_get(self): db = Database('backbench') doc_ids = ['ballentine', 'holhurst', 'swain'] docs = yield db.get(doc_ids) print docs[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