(self, control=None)
Current configuration, by keys.
Current configuration, by keys.
Current configuration by keys .
def __init__(self, control=None):
        self.config = {}
        '''Current configuration, by keys.'''

        if control is None:
            self._protocol = None
            self.__dict__['_accept_all_'] = None

        else:
            self._protocol = ITorControlProtocol(control)

        self.unsaved = OrderedDict()
        '''Configuration that has been changed since last save().'''

        self.parsers = {}
        '''Instances of the parser classes, subclasses of TorConfigType'''

        self.list_parsers = set(['hiddenservices', 'ephemeralonionservices'])
        '''All the names (keys from .parsers) that are a List of something.'''

        # during bootstrapping we decide whether we support the
        # following features. A thing goes in here if TorConfig
        # behaves differently depending upon whether it shows up in
        # "GETINFO config/names"
        self._supports = dict(
            HiddenServiceDirGroupReadable=False
        )
        self._defaults = dict()

        self.post_bootstrap = defer.Deferred()
        if self.protocol:
            if self.protocol.post_bootstrap:
                self.protocol.post_bootstrap.addCallback(
                    self.bootstrap).addErrback(self.post_bootstrap.errback)
            else:
                self.bootstrap()

        else:
            self.do_post_bootstrap(self)

        self.__dict__['_setup_'] = None
def __init__ ( self , control = None ) : self . config = { } if control is None : self . _protocol = None self . __dict__ [ '_accept_all_' ] = None else : self . _protocol = ITorControlProtocol ( control ) self . unsaved = OrderedDict ( ) '''Configuration that has been changed since last save().''' self . parsers = { } '''Instances of the parser classes, subclasses of TorConfigType''' self . list_parsers = set ( [ 'hiddenservices' , 'ephemeralonionservices' ] ) '''All the names (keys from .parsers) that are a List of something.''' # during bootstrapping we decide whether we support the # following features. A thing goes in here if TorConfig # behaves differently depending upon whether it shows up in # "GETINFO config/names" self . _supports = dict ( HiddenServiceDirGroupReadable = False ) self . _defaults = dict ( ) self . post_bootstrap = defer . Deferred ( ) if self . protocol : if self . protocol . post_bootstrap : self . protocol . post_bootstrap . addCallback ( self . bootstrap ) . addErrback ( self . post_bootstrap . errback ) else : self . bootstrap ( ) else : self . do_post_bootstrap ( self ) self . __dict__ [ '_setup_' ] = None