Package x2go :: Module mimeboxactions :: Class X2GoMIMEboxAction
[frames] | no frames]

Class X2GoMIMEboxAction

source code

object --+
         |
        X2GoMIMEboxAction

Instance Methods
 
__init__(self, client_instance=None, logger=None, loglevel=log.loglevel_DEFAULT)
This is a meta class and has no functionality as such.
source code
 
name(self)
Return the X2Go MIME box action's name.
source code
 
description(self)
Return the X2Go MIME box action's description text.
source code
 
do_process(self, mimebox_file, mimebox_dir)
Wrapper method for the actual processing of MIME box actions.
source code

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

Class Variables
  __name__ = 'NAME'
  __description__ = 'DESCRIPTION'
Properties

Inherited from object: __class__

Method Details

__init__(self, client_instance=None, logger=None, loglevel=log.loglevel_DEFAULT)
(Constructor)

source code 

This is a meta class and has no functionality as such. It is used as parent class by »real« X2Go MIME box actions.

Parameters:
  • client_instance (obj) - the underlying X2GoClient instance
  • logger (obj) - you can pass an X2GoLogger object to the X2GoMIMEboxAction constructor
  • loglevel (int) - if no X2GoLogger object has been supplied a new one will be constructed with the given loglevel
Overrides: object.__init__

name(self)

source code 

Return the X2Go MIME box action's name.

Decorators:
  • @property

description(self)

source code 

Return the X2Go MIME box action's description text.

Decorators:
  • @property

do_process(self, mimebox_file, mimebox_dir)

source code 

Wrapper method for the actual processing of MIME box actions.

Parameters:
  • mimebox_file (str) - file name as placed in to the X2Go MIME box directory
  • mimebox_dir (str) - location of the X2Go session's MIME box directory