Package x2go :: Package backends :: Package settings :: Module _gconf :: Class X2goClientSettingsGCONF
[frames] | no frames]

Class X2goClientSettingsGCONF

source code

          object --+    
                   |    
inifiles.X2goIniFile --+
                       |
                      X2goClientSettingsGCONF

Configure settings for X2goClient instances with the GConf daemon.

Instance Methods
 
__init__(self, config_files=['/home/buildd/.x2goclient/settings', '/etc/x2goclient/settings'], defaults=None, logger=None, loglevel=56)
Constructs an X2goClientSettingsGCONF instance.
source code

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

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

Class Variables
  defaultValues = {'Authorization': {'editprofile': True, 'newpr...

Inherited from inifiles.X2goIniFile: user_config_file, write_user_config

Properties

Inherited from inifiles.X2goIniFile: printable_config_file

Inherited from object: __class__

Method Details

__init__(self, config_files=['/home/buildd/.x2goclient/settings', '/etc/x2goclient/settings'], defaults=None, logger=None, loglevel=56)
(Constructor)

source code 

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

On construction the X2goClientSettingsGCONF object is filled with values as found in GConf:

   <GConf paths, 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__

Class Variable Details

defaultValues

Value:
{'Authorization': {'editprofile': True,
                   'newprofile': True,
                   'resume': True,
                   'suspend': True},
 'General': {'autoresume': True, 'clientport': 22},
 'LDAP': {'port': 389,
          'port1': 0,
          'port2': 0,
...