1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 """\
21 L{X2goClientPrintingGCONF} class is one of Python X2go's public API classes.
22
23 Retrieve an instance of this class from your L{X2goClient} instance.
24 Use this class in your Python X2Go based applications to access the »printing«
25 configuration of your X2Go client application.
26
27 """
28 __NAME__ = 'x2goprint-pylib'
29
30
31
32
33 import x2go.log as log
34
35 from x2go.defaults import X2GO_CLIENTPRINTING_DEFAULTS as _X2GO_CLIENTPRINTING_DEFAULTS
36 from x2go.defaults import X2GO_PRINTING_CONFIGFILES as _X2GO_PRINTING_CONFIGFILES
37 import x2go.inifiles as inifiles
38
39 from x2go.x2go_exceptions import X2goNotImplementedYetException
40
42 """\
43 L{X2goClientPrintingGCONF} provides access to the GCONF based configuration
44 of the X2Go client printing setup.
45
46 An instance of L{X2goClientPrintingGCONF} is created on each incoming
47 print job. This facilitates that on every print job the print action
48 for this job is derived from the »printing« configuration file.
49
50 Thus, changes on the file are active for the next incoming print job.
51
52 """
53 _print_action = None
54 defaultValues = _X2GO_CLIENTPRINTING_DEFAULTS
55
57 """\
58 @param defaults: a cascaded Python dicitionary structure with ini file defaults (to override
59 Python X2go's hard coded defaults in L{defaults}
60 @type defaults: C{dict}
61 @param logger: you can pass an L{X2goLogger} object to the
62 L{X2goPrintAction} constructor
63 @type logger: C{obj}
64 @param loglevel: if no L{X2goLogger} object has been supplied a new one will be
65 constructed with the given loglevel
66 @type loglevel: C{int}
67
68 """
69 raise X2goNotImplementedYetException('GCONF backend support is not implemented yet')
70