Ejemplo n.º 1
0
    def quit(self):

        from Ui import UiServer
        proc = UiServer()
        res = proc.stopGshift_Windows()

        self.icon.die()
        time.sleep(0.1)
        sys.exit()
Ejemplo n.º 2
0
    def main(self):
        global ui_server, file_server
        from File import FileServer
        from Ui import UiServer
        file_server = FileServer()
        ui_server = UiServer()

        from Crypt import CryptConnection
        CryptConnection.manager.removeCerts()

        gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
Ejemplo n.º 3
0
def main():
    from File import FileServer
    from Ui import UiServer
    logging.info("Creating UiServer....")
    ui_server = UiServer()

    logging.info("Creating FileServer....")
    file_server = FileServer()

    logging.info("Starting servers....")
    gevent.joinall(
        [gevent.spawn(ui_server.start),
         gevent.spawn(file_server.start)])
Ejemplo n.º 4
0
    def main(self):
        global ui_server, file_server
        from File import FileServer
        from Ui import UiServer
        logging.info("Creating FileServer....")
        file_server = FileServer()
        logging.info("Creating UiServer....")
        ui_server = UiServer()

        logging.info("Removing old SSL certs...")
        from Crypt import CryptConnection
        CryptConnection.manager.removeCerts()

        logging.info("Starting servers....")
        gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])
Ejemplo n.º 5
0
def main():
    logging.info("Version: %s, Python %s, Gevent: %s" %
                 (config.version, sys.version, gevent.__version__))
    global ui_server, file_server
    from File import FileServer
    from Ui import UiServer
    logging.info("Creating UiServer....")
    ui_server = UiServer()

    logging.info("Creating FileServer....")
    file_server = FileServer()

    logging.info("Starting servers....")
    gevent.joinall(
        [gevent.spawn(ui_server.start),
         gevent.spawn(file_server.start)])
Ejemplo n.º 6
0
    def main(self):
        logging.info("Version: %s r%s, Python %s, Gevent: %s" % (config.version, config.rev, sys.version, gevent.__version__))
        global ui_server, file_server
        from File import FileServer
        from Ui import UiServer
        logging.info("Creating FileServer....")
        file_server = FileServer()
        logging.info("Creating UiServer....")
        ui_server = UiServer()

        logging.info("Removing old SSL certs...")
        from Crypt import CryptConnection
        CryptConnection.manager.removeCerts()

        logging.info("Starting servers....")
        gevent.joinall([gevent.spawn(ui_server.start), gevent.spawn(file_server.start)])