Package x2go :: Package backends :: Package settings :: Module _winreg :: Class X2GoClientSettingsWINREG
[frames] | no frames]

Class X2GoClientSettingsWINREG

source code

          object --+    
                   |    
inifiles.X2GoIniFile --+
                       |
                      X2GoClientSettingsWINREG

Windows registry based settings for X2GoClient instances.

Instance Methods
 
__init__(self, config_files=_X2GO_SETTINGS_CONFIGFILES, defaults=None, logger=None, loglevel=log.loglevel_DEFAULT)
Constructs an X2GoClientSettingsWINREG instance.
source code

Inherited from inifiles.X2GoIniFile: __call__, __repr__, get, get_type, get_value, load, printable_config_file, update_value, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  defaultValues = _X2GO_CLIENTSETTINGS_DEFAULTS

Inherited from inifiles.X2GoIniFile: user_config_file, write_user_config

Properties

Inherited from object: __class__

Method Details

__init__(self, config_files=_X2GO_SETTINGS_CONFIGFILES, defaults=None, logger=None, loglevel=log.loglevel_DEFAULT)
(Constructor)

source code 

Constructs an X2GoClientSettingsWINREG instance. This is normally done from within an X2GoClient instance. You can retrieve this X2GoClientSettingsWINREG instance with the X2GoClient.get_client_settings() method.

On construction the X2GoClientSettings object is filled with values from the Windows registry:

   <HKLM path, FIXME: give proper locations here>
   <HKCU path, FIXME: give proper locations here>
Parameters:
  • config_files - a list of configuration file names (e.g. a global filename and a user's home directory filename)
  • defaults - a cascaded Python dicitionary structure with ini file defaults (to override Python X2Go's hard coded defaults in defaults
  • logger - you can pass an X2GoLogger object to the X2GoIniFile constructor
  • loglevel - if no X2GoLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__