[X2Go-Commits] [x2goclient] 05/94: * remove ppring import * added __doc__ strings that allude that documentation work is still missing
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 15 21:04:29 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to annotated tag 0.1.4.0
in repository x2goclient.
commit e886078fce0dea32d68195037a0b5f73ffb429ab
Author: mike <mike at cdb5e8f1-f799-4276-8919-bce57fd91830>
Date: Thu Oct 28 21:24:00 2010 +0000
* remove ppring import
* added __doc__ strings that allude that documentation work is still
missing
git-svn-id: https://svn.das-netzwerkteam.de/x2go/pyhoca-cli/trunk@14 cdb5e8f1-f799-4276-8919-bce57fd91830
---
pyhoca/cli/frontend.py | 37 ++++++++++++++++++++++++++++++-------
1 file changed, 30 insertions(+), 7 deletions(-)
diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 4c07f325..7c41b537 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -24,15 +24,11 @@
import sys, os
import time
-import argparse
import getpass
import x2go
import paramiko
from types import *
-# for debugging
-import pprint
-
# a list of available X2go print actions
from x2go.defaults import X2GO_PRINT_ACTIONS
@@ -63,11 +59,17 @@ class PyHocaCLI(x2go.X2goClient):
# sometimes we have to fail...
def runtime_error(self, m, exitcode=-1):
+ """\
+ STILL UNDOCUMENTED
+ """
sys.stderr.write ("%s: error: %s\n" % (sys.argv[0], m))
sys.exit(exitcode)
def list_sessions(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# retrieve a session list
print
print "Available runing/suspended X2go sessions"
@@ -96,12 +98,18 @@ class PyHocaCLI(x2go.X2goClient):
def clean_sessions(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# clean all sessions from X2go server
self.logger('cleaning up all running sessions from X2go server: %s' % self.args.server, x2go.loglevel_NOTICE, )
X2goClient.clean_sessions(self, s_hash)
def new_session(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# start a new session and run a command
self.logger('starting a new X2go session', x2go.loglevel_INFO, )
self.logger('Command for new session is: %s' % self.args.command, x2go.loglevel_DEBUG, )
@@ -109,6 +117,9 @@ class PyHocaCLI(x2go.X2goClient):
def resume_session(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# resume a running session
self.logger('resuming X2go session: %s' % self.args.resume, x2go.loglevel_INFO, )
available_sessions = self.list_sessions(s_hash)
@@ -119,6 +130,9 @@ class PyHocaCLI(x2go.X2goClient):
def suspend_session(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# send a suspend request to a session
self.logger('requesting X2go session suspend of session: %s' % self.args.suspend, x2go.loglevel_INFO, )
available_sessions = self.list_sessions(s_hash)
@@ -129,6 +143,9 @@ class PyHocaCLI(x2go.X2goClient):
def terminate_session(self, s_hash):
+ """\
+ STILL UNDOCUMENTED
+ """
# send a terminate request to a session
self.logger('requesting X2go session terminate of session: %s' % self.args.terminate, x2go.loglevel_INFO, )
available_sessions = self.list_sessions(s_hash)
@@ -139,7 +156,9 @@ class PyHocaCLI(x2go.X2goClient):
def __init__(self, args, logger=None, liblogger=None):
-
+ """\
+ STILL UNDOCUMENTED
+ """
self.args = args
if logger is None:
logger = x2go.X2goLogger(tag='PyHocaCLI')
@@ -170,7 +189,9 @@ class PyHocaCLI(x2go.X2goClient):
def authenticate(self):
-
+ """\
+ STILL UNDOCUMENTED
+ """
connected = False
force_password_auth = False
while not connected:
@@ -189,7 +210,9 @@ class PyHocaCLI(x2go.X2goClient):
def MainLoop(self):
-
+ """\
+ STILL UNDOCUMENTED
+ """
# give the session some time to come up...
# no CTRL-C is allowed during this phase...
i=0
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list