def __init__(self, params=None): ManagedData.__init__(self) # Initialize all values # 1. Basic connection data self.pseudo = params and params.pseudo or u"" self.host = "localhost" self.port = 8550 self.connection_type = 'local' self.solipsis_port = 6010 self.local_control_port_min = params and params.local_control_port_min or 8501 self.local_control_port_max = params and params.local_control_port_max or 8599 self.local_control_port = 0 # 2. HTTP proxy configuration (for XMLRPC) self.always_try_without_proxy = True self.proxymode_auto = True self.proxymode_manual = False self.proxymode_none = False self.proxy_mode = "" self.proxy_pac_url = "" self.proxy_host = "" self.proxy_port = 0 self.proxy_autodetect_done = False # 3. Other preferences self.node_autokill = True self.multiple_identities = False # 4. Service-specific configuration data self.services = [] self.service_config = {} # 5. User-defined bookmarks self.bookmarks = BookmarkList()
def __init__(self, params=None): ManagedData.__init__(self) # Initialize all values # 1. Basic connection data self.host = "localhost" self.port = 8550 self.connection_type = 'local' self.solipsis_port = 6010 self.local_control_port_min = params and params.local_control_port_min \ or 8501 self.local_control_port_max = params and params.local_control_port_max \ or 8599 self.local_control_port = 0 # 2. HTTP proxy configuration (for XMLRPC) self.proxymode_auto = True self.proxymode_manual = False self.proxymode_none = False self.proxy_mode = "" self.proxy_pac_url = "" self.proxy_host = "" self.proxy_port = 0 # 3. Other preferences self.node_autokill = True self.multiple_identities = False # 4. Service-specific configuration data self.services = [] self.service_config = {} # 5. Other metadata self.pseudo = params and params.pseudo or u"" self.languages = [] # 6. Persistent node ID self.node_id = '' # This variable is used to detect that a copy # of the config file has been made, so that we # can reassign new node IDs self._copy_check = getcwd() self.copy_check = self._copy_check # Callables for config change notification self._event_sinks = []
def __init__(self, host=None, port=None, pseudo=None): ManagedData.__init__(self) # Initialize all values self.pseudo = pseudo or u"Guest" self.host = host or "localhost" self.port = port or 8550 self.always_try_without_proxy = True self.proxymode_auto = True self.proxymode_manual = False self.proxymode_none = False self.proxy_mode = "" self.proxy_pac_url = "" self.proxy_host = "" self.proxy_port = 0 self.proxy_autodetect_done = False self.node_autokill = True self.services = [] self.solipsis_port = 6010 self.service_config = {}
def __init__(self): ManagedData.__init__(self) # Default values are not valid float values, # so that users cannot jump to (0.0, 0.0) by laziness self.x = "" self.y = ""