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 49946e41d34eca8773c5f1828c4464f4683f8093 Author: Mike Gabriel <mike.gabr...@das-netzwerkteam.de> Date: Tue May 17 10:33:45 2011 +0200 fixes list sessions output, depends on newest python-x2go code --- debian/control | 2 +- pyhoca/cli/frontend.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/control b/debian/control index d1762f25..bca4c9b5 100644 --- a/debian/control +++ b/debian/control @@ -17,7 +17,7 @@ Architecture: all Depends: ${misc:Depends}, python, - python-x2go (>=0.0.43-0~0), + python-x2go (>=0.0.44-0~0), python-argparse, python-setproctitle Description: A command line X2go client written in Python diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py index 0a9e8ae6..c197e5fa 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -81,7 +81,8 @@ class PyHocaCLI(x2go.X2goClient): print print "Available runing/suspended X2go sessions" print "========================================" - print "Host: [%s]:%s" % self._X2goClient__get_session_server(s_hash) + _peername = self._X2goClient__get_session_server_peername(s_hash) + print "Host: %s - [%s]:%s" % (self._X2goClient__get_session_server_hostname(s_hash), _peername[0], _peername[1]) print "Username: %s" % self._X2goClient__get_session_username(s_hash) print session_infos = self._X2goClient__list_sessions(s_hash) @@ -102,6 +103,9 @@ class PyHocaCLI(x2go.X2goClient): # TODO: turn into datetime object print "suspended since: %s" % session_info.date_suspended print + else: + print "No running/suspended sessions found on X2go server." + print def list_profiles(self): # retrieve a session list -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git _______________________________________________ x2go-commits mailing list x2go-commits@lists.x2go.org https://lists.x2go.org/listinfo/x2go-commits