예제 #1
0
파일: jsonrpc.py 프로젝트: kret0s/tryton3_8
 def __init__(self, interface, port, secure=False):
     daemon.__init__(self, interface, port, secure, name='JSONRPCDaemon')
     if self.secure:
         handler_class = SecureJSONRPCRequestHandler
         server_class = SecureThreadedJSONRPCServer
         if self.ipv6:
             server_class = SecureThreadedJSONRPCServer6
     else:
         handler_class = SimpleJSONRPCRequestHandler
         server_class = SimpleThreadedJSONRPCServer
         if self.ipv6:
             server_class = SimpleThreadedJSONRPCServer6
     self.server = server_class((interface, port), handler_class, 0)
예제 #2
0
파일: http.py 프로젝트: silpol/tryton-bef
 def __init__(self, interface, port, secure=False):
     daemon.__init__(self, interface, port, secure, name='HTTPDaemon')
     if self.secure:
         handler_class = SecureRequestHandler
         server_class = SecureThreadedHTTPServer
         if self.ipv6:
             server_class = SecureThreadedHTTPServer6
     else:
         handler_class = SimpleHTTPRequestHandler
         server_class = SimpleThreadedHTTPServer
         if self.ipv6:
             server_class = SimpleThreadedHTTPServer6
     self.server = server_class((interface, port), handler_class, 1)
예제 #3
0
파일: jsonrpc.py 프로젝트: bala4901/trytond
 def __init__(self, interface, port, secure=False):
     daemon.__init__(self, interface, port, secure, name='JSONRPCDaemon')
     if self.secure:
         handler_class = SecureJSONRPCRequestHandler
         server_class = SecureThreadedJSONRPCServer
         if self.ipv6:
             server_class = SecureThreadedJSONRPCServer6
     else:
         handler_class = SimpleJSONRPCRequestHandler
         server_class = SimpleThreadedJSONRPCServer
         if self.ipv6:
             server_class = SimpleThreadedJSONRPCServer6
     self.server = server_class((interface, port), handler_class, 0)
예제 #4
0
파일: webdav.py 프로젝트: Sisouvan/ogh
 def __init__(self, interface, port, secure=False):
     daemon.__init__(self, interface, port, secure,
             name='WebDAVServerThread')
     if self.secure:
         handler_class = SecureWebDAVAuthRequestHandler
         server_class = SecureThreadedHTTPServer
         if self.ipv6:
             server_class = SecureThreadedHTTPServer6
     else:
         handler_class = WebDAVAuthRequestHandler
         server_class = BaseThreadedHTTPServer
         if self.ipv6:
             server_class = BaseThreadedHTTPServer6
     handler_class._config = setupConfig()
     handler_class.IFACE_CLASS = TrytonDAVInterface(interface, port, secure)
     handler_class.IFACE_CLASS.baseurl = handler_class._config.DAV.baseurl
     self.server = server_class((interface, port), handler_class)
예제 #5
0
 def __init__(self, interface, port, secure=False):
     daemon.__init__(self,
                     interface,
                     port,
                     secure,
                     name='WebDAVServerThread')
     if self.secure:
         handler_class = SecureWebDAVAuthRequestHandler
         server_class = SecureThreadedHTTPServer
         if self.ipv6:
             server_class = SecureThreadedHTTPServer6
     else:
         handler_class = WebDAVAuthRequestHandler
         server_class = BaseThreadedHTTPServer
         if self.ipv6:
             server_class = BaseThreadedHTTPServer6
     handler_class._config = setupConfig()
     handler_class.IFACE_CLASS = TrytonDAVInterface(interface, port, secure)
     handler_class.IFACE_CLASS.baseurl = handler_class._config.DAV.baseurl
     self.server = server_class((interface, port), handler_class)