def __init__(self, app, app_url, wsdl_url=None): ServerBase.__init__(self, app) self.app_url = app_url self.wsdl_url = wsdl_url self.soap_socket = context.socket(zmq.REP) self.soap_socket.bind(app_url)
def __init__(self, app): ServerBase.__init__(self, app) self._allowed_http_verbs = app.in_protocol.allowed_http_verbs self._verb_handlers = { "GET": self.handle_rpc, "POST": self.handle_rpc, }
def __init__(self, app): ServerBase.__init__(self, app) self._allowed_http_verbs = app.in_protocol.allowed_http_verbs self._verb_handlers = { "GET": self.handle_rpc, "POST": self.handle_rpc, } self._mtx_build_interface_document = threading.Lock()
def __init__(self, app, chunked=False, max_content_length=2 * 1024 * 1024, block_length=8 * 1024): ServerBase.__init__(self, app) self._allowed_http_verbs = app.in_protocol.allowed_http_verbs self.chunked = chunked self.max_content_length = max_content_length self.block_length = block_length
def __init__(self, db, app, consumer_id): ServerBase.__init__(self, app) self.session = sessionmaker(bind=db)() self.id = consumer_id try: self.session.query(WorkerStatus) \ .filter_by(worker_id=self.id).one() except NoResultFound: self.session.add(WorkerStatus(worker_id=self.id, task_id=0)) self.session.commit()
def __init__(self, app): ServerBase.__init__(self, app) self.service = _FunctionProxy(self, self.app) self.factory = Factory(self.app)
def __init__(self, app): ServerBase.__init__(self, app) self._allowed_http_verbs = app.in_protocol.allowed_http_verbs