Package conduit :: Package platform :: Module SettingsPython :: Class SettingsImpl
[hide private]

Class SettingsImpl

source code


Settings implementation which stores settings in an ini style format using python config parser library

Instance Methods [hide private]
 
__init__(self, defaults, changedCb) source code
 
get(self, key, default=None) source code
 
set(self, key, value) source code
 
proxy_enabled(self)
Returns: True if the user has specified a http proxy via the http_proxy environment variable
source code
 
get_proxy(self)
Returns the details of the configured http proxy.
source code
 
save(self) source code

Inherited from Settings: set_overrides

Class Variables [hide private]
  VALID_KEY_TYPES = bool, str, int, list, tuple
Method Details [hide private]

__init__(self, defaults, changedCb)
(Constructor)

source code 
Overrides: Settings.__init__

get(self, key, default=None)

source code 
Overrides: Settings.get

set(self, key, value)

source code 
Overrides: Settings.set

proxy_enabled(self)

source code 
Returns:
True if the user has specified a http proxy via the http_proxy environment variable
Overrides: Settings.proxy_enabled

get_proxy(self)

source code 
Returns the details of the configured http proxy. The http_proxy environment variable overrides the GNOME setting
Returns:
host,port,user,password
Overrides: Settings.get_proxy

save(self)

source code 
Overrides: Settings.save