Beispiel #1
0
def start_panel(torconfig):
    """
    Set up the panel service, which lets the user customize apaf and choose
    which services are going to run.

    :param torconfig: an instance of txtorcon.TorConfig representing the
                      configuration file.
    """
    panel = PanelService()
    add_service(torconfig, panel)
Beispiel #2
0
def start_panel(torconfig):
    """
    Set up the panel service, which lets the user customize apaf and choose
    which services are going to run.

    :param torconfig: an instance of txtorcon.TorConfig representing the
                      configuration file.
    """
    panel = PanelService()
    add_service(torconfig, panel)
Beispiel #3
0
    def setUp(self):
        """
        Set up an asyncronous get trasport.
        """
        torconfig = txtorcon.TorConfig()
        self.service = panel.PanelService()

        # for simplicity, disable xrcf cookies
        self.service.factory.settings['xsrf_cookies'] = False

        add_service(torconfig, self.service, 6660)
        self.addCleanup(self.service.tcp.loseConnection)
Beispiel #4
0
    def setUp(self):
        """
        Set up an asyncronous get trasport.
        """
        torconfig = txtorcon.TorConfig()
        self.service = panel.PanelService()

        # for simplicity, disable xrcf cookies
        self.service.factory.settings['xsrf_cookies'] = False

        add_service(torconfig, self.service, 6660)
        self.addCleanup(self.service.tcp.loseConnection)