def parseResponse(self, contents): query = self.current_queries.pop(0) if pipeline_debug: self.log('responded', query.method) self.sendQuery() try: response = ebrpc.loads(contents) except Exception, e: query.deferred.errback(failure.Failure()) del query.deferred
def render(self, request): request.setHeader('server', "%s/%s" % (app_name, version)) request.content.seek(0, 0) args, functionPath = ebrpc.loads(request.content.read()) args, kwargs = args request.functionPath = functionPath try: function = self._getFunction(functionPath) except Fault, f: self._cbRender(f, request)