Package x2go :: Package backends :: Package info :: Module _stdout :: Class X2goServerSessionListSTDOUT
[frames] | no frames]

Class X2goServerSessionListSTDOUT

source code

object --+
         |
        X2goServerSessionListSTDOUT

X2goServerSessionListSTDOUT is used to store all information that is retrieved from a connected X2Go server on a X2goControlSessionBACKEND.list_sessions() call.

Instance Methods
 
__init__(self, x2go_output, info_backend=<class 'x2go.backends.info._stdout.X2goServerSessionInfoSTDOUT'>)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self) source code
X2goServerSessionInfo* or None
get_session_info(self, session_name)
Retrieve the session information for <session_name>.
source code

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

Properties

Inherited from object: __class__

Method Details

__init__(self, x2go_output, info_backend=<class 'x2go.backends.info._stdout.X2goServerSessionInfoSTDOUT'>)
(Constructor)

source code 

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

Parameters:
  • x2go_output (str) - X2Go server's x2golistsessions command output, each session separated by a newline character. Session values are separated by Unix Pipe Symbols ('|')
  • info_backend (X2goServerSessionInfo*) - the session info backend to use
Overrides: object.__init__

get_session_info(self, session_name)

source code 

Retrieve the session information for <session_name>.

Parameters:
  • session_name (str) - the queried session name
Returns: X2goServerSessionInfo* or None
the session info of <session_name>