コード例 #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)
コード例 #2
0
ファイル: panel.py プロジェクト: Acidburn0zzz/APAF
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)
コード例 #3
0
ファイル: test_panel.py プロジェクト: theassyrian/APAF
    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)
コード例 #4
0
ファイル: test_panel.py プロジェクト: Acidburn0zzz/APAF
    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)