Package conduit :: Module Settings :: Class Settings
[hide private]

Class Settings

source code


Class for storing conduit.GLOBALS.settings. Keys of type str, bool, int, and list of strings supported at this stage.

Also stores the special proxy settings.

Instance Methods [hide private]
 
__init__(self, implName) source code
 
_key_changed(self, key) source code
 
set_overrides(self, **overrides)
Sets values of settings that only exist for this setting, and are never saved, nor updated.
source code
 
get(self, key, **kwargs)
Returns the value of the key or the default value if the key is not yet stored
source code
 
set(self, key, value, **kwargs)
Sets the key to value.
source code
 
proxy_enabled(self)
Returns: True if the user has specified a http proxy via the http_proxy environment variable, or in the appropriate settings backend, such as gconf
source code
 
get_proxy(self)
Returns the details of the configured http proxy.
source code
 
save(self)
Performs any necessary tasks to ensure settings are saved between sessions
source code
Class Variables [hide private]
  __gsignals__ = {'changed':(gobject.SIGNAL_RUN_LAST | gobject.S...
  DEFAULTS = {'show_splashscreen': True, 'show_dp_description': ...
Method Details [hide private]

proxy_enabled(self)

source code 
Returns:
True if the user has specified a http proxy via the http_proxy environment variable, or in the appropriate settings backend, such as gconf

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

Class Variable Details [hide private]

__gsignals__

Value:
{'changed':(gobject.SIGNAL_RUN_LAST | gobject.SIGNAL_DETAILED, gobject\
.TYPE_NONE, ()),}

DEFAULTS

Value:
{'show_splashscreen': True, 'show_dp_description': False, 'show_status\
_icon': True, 'save_on_exit': True, 'enable_network': True, 'enable_re\
movable_devices': True, 'default_policy_conflict': "ask", 'default_pol\
icy_deleted': "ask", 'gui_expanded_rows': [], 'gui_restore_expanded_ro\
ws': True, 'gui_hpane_postion': 250, 'gui_window_size': [], 'gui_minim\
ize_to_tray': False, 'gui_initial_canvas_height': 450, 'gui_initial_ca\
nvas_width': 450, 'gui_use_rgba_colormap': False, 'gui_show_hints': Tr\
ue, 'web_login_browser': "gtkmozembed"}