[X2Go-Commits] [x2goclient] 18/74: When finishing the application Update session status before reporting back to the user what happened to the session.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 15 21:05:34 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to annotated tag 0.5.0.1
in repository x2goclient.
commit 7deba5343c345baf7d347c6c6363e870e45c766d
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Nov 10 19:54:07 2012 +0100
When finishing the application Update session status before reporting back to the user what happened to the session.
---
debian/changelog | 2 ++
pyhoca/cli/frontend.py | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1b637473..31c66dcc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,8 @@ pyhoca-cli (0.2.1.0-0~x2go1) UNRELEASED; urgency=low
- Add cmdline option --from-stdin that facilitates lightdm remote login
session startup.
- The option ,,password'' is not allowed for session registration.
+ - When finishing the application Update session status before reporting
+ back to the user what happened to the session.
* /debian/control:
+ Maintainer change in package: X2Go Developers <x2go-dev at lists.berlios.de>.
+ Reduce python version in Build-Depends to allow build on Ubuntu 10.04.
diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 30e55a1e..0bffb014 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -71,11 +71,9 @@ class PyHocaCLI(x2go.X2goClient):
"""
x2go_session_hash = None
-
def _runtime_error(self, m, exitcode=-1):
runtime_error(m, exitcode=exitcode)
-
def list_sessions(self, s_hash):
"""\
List up server-side available sessions for the logged in user.
@@ -520,6 +518,10 @@ class PyHocaCLI(x2go.X2goClient):
# wait a little while before telling the user what has happened
time.sleep(2)
+ # refresh session status so we can be most accurate on what we report below
+ self._X2goClient__list_sessions(self.x2go_session_hash)
+
+ # report about the session status once we get here...
if self._X2goClient__has_session_terminated(self.x2go_session_hash):
self._pyhoca_logger("X2Go session %s has terminated" % session_name, loglevel=x2go.loglevel_NOTICE, )
elif self._X2goClient__is_session_suspended(self.x2go_session_hash):
--
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