__init__(self,
config_files=[ ' /builddir/.x2goclient/settings ' , ' /etc/x2goclient/settings ' ] ,
defaults={ ' Authorization ' : { ' editprofile ' : True, ' newprofile ' : True, ' r ... ,
logger=None,
loglevel=56)
(Constructor)
| source code
|
Constructs an X2GoClientSettings instance. This is normally done from
within an X2GoClient instance. You can retrieve this X2GoClientSettings instance with the X2GoClient.get_client_settings()
method.
On construction the X2GoClientSettings object is filled with values from the
configuration files:
/etc/x2goclient/settings
~/.x2goclient/settings
The files are read in the specified order and config options of both
files are merged. Options set in the user configuration file
(~/.x2goclient/settings ) override global options set in
/etc/x2goclient/settings .
- 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:
inifiles.X2GoIniFile.__init__
|