1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 """\
21 L{X2GoClientPrinting} 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 import copy
32
33
34 import x2go.log as log
35
36
37 from x2go.defaults import X2GO_CLIENTPRINTING_DEFAULTS as _X2GO_CLIENTPRINTING_DEFAULTS
38
39 from x2go.x2go_exceptions import X2GoNotImplementedYetException
40
42 """\
43 L{x2go.backends.printing.winreg.X2GoClientPrinting} provides access to the Windows registry
44 based configuration of the X2Go client printing setup.
45
46 An instance of L{x2go.backends.printing.winreg.X2GoClientPrinting} is created on each incoming
47 print job. This facilitates that on every print job the print action for this job is derived from the
48 »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 = copy.deepcopy(_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('WINREG backend support is not implemented yet')
70