コード例 #1
0
    def __init__(self,
                 addr=('localhost', 8000),
                 RequestHandler=SOAPRequestHandler,
                 log=0,
                 encoding='UTF-8',
                 config=Config,
                 namespace=None):

        # Test the encoding, raising an exception if it's not known
        if encoding != None:
            ''.encode(encoding)

        self.namespace = namespace
        self.objmap = {}
        self.funcmap = {}
        self.encoding = encoding
        self.config = config
        self.log = log

        self.allow_reuse_address = 1

        ThreadingGSITCPSocketServer.__init__(self,
                                             addr,
                                             RequestHandler,
                                             self.config.channel_mode,
                                             self.config.delegation_mode,
                                             tcpAttr=self.config.tcpAttr)
コード例 #2
0
    def __init__(
        self,
        addr=("localhost", 8000),
        RequestHandler=SOAPRequestHandler,
        log=0,
        encoding="UTF-8",
        config=Config,
        namespace=None,
    ):

        # Test the encoding, raising an exception if it's not known
        if encoding != None:
            "".encode(encoding)

        self.namespace = namespace
        self.objmap = {}
        self.funcmap = {}
        self.encoding = encoding
        self.config = config
        self.log = log

        self.allow_reuse_address = 1

        ThreadingGSITCPSocketServer.__init__(
            self,
            addr,
            RequestHandler,
            self.config.channel_mode,
            self.config.delegation_mode,
            tcpAttr=self.config.tcpAttr,
        )
コード例 #3
0
ファイル: GSIServer.py プロジェクト: pombredanne/SOAPpy-1
    def get_request(self):
        sock, addr = ThreadingGSITCPSocketServer.get_request(self)

        return sock, addr
コード例 #4
0
    def get_request(self):
        sock, addr = ThreadingGSITCPSocketServer.get_request(self)

        return sock, addr