Package x2go :: Package backends :: Package profiles :: Module _file :: Class X2goSessionProfilesFILE
[frames] | no frames]

Class X2goSessionProfilesFILE

source code

          object --+    
                   |    
inifiles.X2goIniFile --+
                       |
                      X2goSessionProfilesFILE

Instance Methods
 
__init__(self, config_files=['/home/buildd/.x2goclient/sessions', '/etc/x2goclient/sessions'], defaults=None, session_profile_defaults=None, logger=None, loglevel=56)
STILL UNDOCUMENTED
source code
class
__call__(self, profile_id_or_name)
STILL UNDOCUMENTED
source code
 
get_profile_metatype(self, profile_id_or_name, force=False) source code
 
get_profile_option_type(self, option)
STILL UNDOCUMENTED
source code
class
get_type(self, section, key)
STILL UNDOCUMENTED
source code
 
get_profile_config(self, profile_id_or_name=None, profile_id=None)
STILL UNDOCUMENTED
source code
 
default_profile_config(self)
STILL UNDOCUMENTED
source code
 
has_profile(self, profile_id_or_name) source code
 
has_profile_id(self, profile_id)
STILL UNDOCUMENTED
source code
 
has_profile_name(self, profile_name)
STILL UNDOCUMENTED
source code
 
to_profile_id(self, profile_name)
STILL UNDOCUMENTED
source code
 
to_profile_name(self, profile_id)
STILL UNDOCUMENTED
source code
 
add_profile(self, profile_id=None, **kwargs)
STILL UNDOCUMENTED
source code
 
delete_profile(self, profile_id_or_name)
STILL UNDOCUMENTED
source code
 
update_value(self, section, key, value)
STILL UNDOCUMENTED
source code
 
check_profile_id_or_name(self, profile_id_or_name)
STILL UNDOCUMENTED
source code
 
to_session_params(self, profile_id_or_name=None, profile_id=None)
STILL UNDOCUMENTED
source code
 
get_session_param(self, profile_id_or_name, param)
STILL UNDOCUMENTED
source code

Inherited from inifiles.X2goIniFile: __repr__, get, get_value, load, write

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
  defaultSessionProfile = {'applications': ['WWWBROWSER', 'MAILC...

Inherited from inifiles.X2goIniFile: defaultValues, user_config_file, write_user_config

Properties
  profile_ids
STILL UNDOCUMENTED
  profile_names
STILL UNDOCUMENTED

Inherited from inifiles.X2goIniFile: printable_config_file

Inherited from object: __class__

Method Details

__init__(self, config_files=['/home/buildd/.x2goclient/sessions', '/etc/x2goclient/sessions'], defaults=None, session_profile_defaults=None, logger=None, loglevel=56)
(Constructor)

source code 

STILL UNDOCUMENTED

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 X2goFwServer constructor
  • loglevel - if no X2goLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__

__call__(self, profile_id_or_name)
(Call operator)

source code 

STILL UNDOCUMENTED

Parameters:
  • section - the ini file section
  • key - the ini file key in the given section
Returns: class
the value for the given section and key
Overrides: inifiles.X2goIniFile.get_value

get_type(self, section, key)

source code 

STILL UNDOCUMENTED

Parameters:
  • section - the ini file section
  • key - the ini file key in the given section
Returns: class
a Python variable type
Overrides: inifiles.X2goIniFile.get_type

update_value(self, section, key, value)

source code 

STILL UNDOCUMENTED

Parameters:
  • section - the ini file section
  • key - the ini file key in the given section
  • value - the value for the given section and key
Overrides: inifiles.X2goIniFile.update_value

Class Variable Details

defaultSessionProfile

Value:
{'applications': ['WWWBROWSER', 'MAILCLIENT', 'OFFICE', 'TERMINAL'],
 'command': 'TERMINAL',
 'defsndport': True,
 'dpi': 96,
 'export': '',
 'fstunnel': True,
 'fullscreen': False,
 'height': 600,
...

Property Details

profile_ids

STILL UNDOCUMENTED

Get Method:
unreachable.profile_ids(self) - STILL UNDOCUMENTED

profile_names

STILL UNDOCUMENTED

Get Method:
unreachable.profile_names(self) - STILL UNDOCUMENTED