@tornado.gen.coroutine
    def loadentries(self, app):
        if self.allaccess:
            raise Exception('You should not call the loadentries method when the creator matches!')
        
        cursor = app.mongodb.propaccess.find({'wid':self.wid, 'fromwid':self.fromwid},
                                             {'key':1, 'types':1})
        while (yield cursor.fetch_next):
            ent = cursor.next_object()
            self.keymap[ent['key']] = set(ent['types'])
        # cursor autoclose
        
        if not self.keymap:
            raise Exception('Cannot access another creator\'s world without permission')
        return
NAME
dataset/ETHPy150Open erkyrath/tworld/lib/twcommon/access.py/RemoteAccessMap.loadentries--crossover with--dataset/ETHPy150Open sassoftware/conary/conary/build/groupsetrecipe.py/GroupTupleSetMethods.members