Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/b/n/bnw-HEAD/bnw/web/auth.py   bnw(Download)
    def respond(self):
        key = self.get_argument('key', '')
        user = yield objs.User.find_one({'login_key': key})
        if user:
            if self.request.protocol == 'https':

src/b/n/bnw-HEAD/bnw/web/api.py   bnw(Download)
    def respond_post(self, cmd_name):
        stime = time.time()
        user = yield objs.User.find_one(
            {'login_key': self.get_argument('login', '')})
        self.set_header('Content-Type', 'application/json; charset=utf-8')