Package x2go :: Package backends :: Package printing :: Module _gconf :: Class X2goClientPrintingGCONF
[frames] | no frames]

Class X2goClientPrintingGCONF

source code

          object --+    
                   |    
inifiles.X2goIniFile --+
                       |
                      X2goClientPrintingGCONF

X2goClientPrinting provides access to the X2go ini-like file »printing« as stored in ~/.x2goclient/printing resp. globally /etc/x2goclient/printing.

An instance of X2goClientPrinting is created on each incoming print job. This facilitates that on every print job the print action for this job is derived from the »printing« configuration file.

Thus, changes on the file are active for the next incoming print job.

Instance Methods
 
__init__(self, config_files=['/home/buildd/.x2goclient/printing', '/etc/x2goclient/printing'], defaults=None, logger=None, loglevel=56)
x.__init__(...) initializes x; see help(type(x)) for signature
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
  config_files = []
  defaultValues = {'CUPS': {'defaultprinter': 'PDF'}, 'General':...

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/printing', '/etc/x2goclient/printing'], defaults=None, logger=None, loglevel=56)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • config_files (list) - a list of configuration files names (e.g. a global filename and a user's home directory filename)
  • defaults (dict) - a cascaded Python dicitionary structure with ini file defaults (to override Python X2go's hard coded defaults in defaults
  • logger (instance) - you can pass an X2goLogger object to the X2goPrintAction constructor
  • loglevel (int) - 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:
{'CUPS': {'defaultprinter': 'PDF'},
 'General': {'pdfview': True, 'showdialog': False},
 'print': {'command': 'lpr',
           'ps': False,
           'startcmd': False,
           'stdin': False},
 'save': {'folder': 'PDF'},
 'view': {'command': 'xpdf', 'open': True}}