1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 """\
21 X2goClientSettings class - managing x2goclient settings file (incl. LDAP-Support).
22
23 The L{X2goClientSettings} class one of Python X2go's a public API classes.
24 Use this class (indirectly by retrieving it from an L{X2goClient} instance)
25 in your Python X2go based applications to access the
26 »settings« configuration file of your X2go client application.
27
28 """
29 __NAME__ = 'x2gosettings-pylib'
30
31
32 import os
33
34
35 import x2go.log as log
36 from x2go.defaults import X2GO_SETTINGS_CONFIGFILES as _X2GO_SETTINGS_CONFIGFILES
37 from x2go.defaults import X2GO_CLIENTSETTINGS_DEFAULTS as _X2GO_CLIENTSETTINGS_DEFAULTS
38 import x2go.inifiles as inifiles
39
40
42 """\
43 Configuration file based settings for X2goClient instances.
44
45 """
46 defaultValues = _X2GO_CLIENTSETTINGS_DEFAULTS
47
49 """\
50 Constructs an L{X2goClientSettings} instance. This is normally done by an L{X2goClient} instance.
51 You can retrieve this L{X2goClientSettings} instance with the L{X2goClient.get_client_settings()}
52 method.
53
54 On construction the L{X2goClientSettings} object is filled with values from the configuration files::
55
56 /etc/x2goclient/settings
57 ~/.x2goclient/settings
58
59 The files are read in the specified order and config options of both files are merged. Options
60 set in the user configuration file (C{~/.x2goclient/settings}) override global options set in
61 C{/etc/x2goclient/settings}.
62
63 """
64 raise X2goNotImplementedYetException('WINREG backend support is not implemented yet')
65