def Compute(self):
     """
     Compute some "hidden" configuration values 
     (like HTTP proxy URL)
     """
     self.proxy_mode = self.proxymode_auto and "auto" or (
         self.proxymode_manual and "manual" or "none")
     if self.proxy_mode == "auto":
         from solipsis.util.httpproxy import discover_http_proxy
         proxy_host, proxy_port = discover_http_proxy()
         self.proxy_host = proxy_host or ""
         self.proxy_port = proxy_port or 0
 def Compute(self):
     """
     Compute some "hidden" or temporary configuration values 
     (e.g. HTTP proxy auto-configuration URL).
     """
     self.proxy_mode = self.proxymode_auto and "auto" or (
         self.proxymode_manual and "manual" or "none")
     if self.connection_type == "local":
         # Choose random control port for the local node we wish to launch
         self.local_control_port = random.randrange(
             self.local_control_port_min,
             self.local_control_port_max + 1)
     else:
         # If necessary, autodetect proxy address
         if self.proxy_mode == "auto":
             from solipsis.util.httpproxy import discover_http_proxy
             proxy_host, proxy_port = discover_http_proxy()
             self.proxy_host = proxy_host or ""
             self.proxy_port = proxy_port or 0