def POST(self, request_id): _, body = templeton.handlers.get_request_parms() try: new_duration = int(body["duration"]) except (KeyError, ValueError): raise web.badrequest() data.renew_request(request_id, new_duration) raise mozpool_handlers.nocontent()
def POST(self, request_id): _, body = templeton.handlers.get_request_parms() try: new_duration = int(body["duration"]) request_id = int(request_id) except (KeyError, ValueError): raise web.badrequest() self.db.requests.renew(request_id, new_duration) raise nocontent()
def POST(self, request_id): mozpool.mozpool.driver.handle_event(request_id, 'close', None) raise mozpool_handlers.nocontent()
def POST(self, request_id): mozpool.mozpool.driver.handle_event(int(request_id), 'close', None) raise nocontent()