def start_server(self, server): from servers import ServerAdapter if issubclass(server, ServerAdapter): if self.https and not server.SSL: log.warning( _("This server offers no SSL, please consider using threaded instead" )) elif not self.https: self.cert = self.key = None # This implicitly disables SSL # there is no extra argument for the server adapter # TODO: check for openSSL ? # Now instantiate the serverAdapter server = server(self.host, self.port, self.key, self.cert, 6, self.debug) # todo, num_connections name = server.NAME else: # server is just a string name = server log.info( _("Starting %(name)s webserver: %(host)s:%(port)d") % { "name": name, "host": self.host, "port": self.port }) webinterface.run_server(host=self.host, port=self.port, server=server)
def start_server(self, server): from servers import ServerAdapter if issubclass(server, ServerAdapter): if self.https and not server.SSL: log.warning(_("This server offers no SSL, please consider using threaded instead")) # Now instantiate the serverAdapter server = server(self.host, self.port, self.key, self.cert, 6, self.debug) # todo, num_connections name = server.NAME else: # server is just a string name = server log.info(_("Starting %(name)s webserver: %(host)s:%(port)d") % {"name": name, "host": self.host, "port": self.port}) webinterface.run_server(host=self.host, port=self.port, server=server)
def start_server(self, server): from servers import ServerAdapter if issubclass(server, ServerAdapter): if self.https and not server.SSL: log.warning(_("This server offers no SSL, please consider using threaded instead")) elif not self.https: self.cert = self.key = None # This implicitly disables SSL # there is no extra argument for the server adapter # TODO: check for openSSL ? # Now instantiate the serverAdapter server = server(self.host, self.port, self.key, self.cert, 6, self.debug) # todo, num_connections name = server.NAME else: # server is just a string name = server log.info(_("Starting %(name)s webserver: %(host)s:%(port)d") % {"name": name, "host": self.host, "port": self.port}) webinterface.run_server(host=self.host, port=self.port, server=server)