[X2Go-Commits] [pyhoca-cli] 01/03: pyhoca/cli/frontend.py: Be more real-time realistic and user friendly with notice log messages after authentication.

git-admin at x2go.org git-admin at x2go.org
Sat Dec 1 11:58:02 CET 2018


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-cli.

commit 7585c67979a790ca344a57369b2c56501e25c88c
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Nov 26 10:28:59 2018 +0100

    pyhoca/cli/frontend.py: Be more real-time realistic and user friendly with notice log messages after authentication.
---
 debian/changelog       |  2 ++
 pyhoca/cli/frontend.py | 10 ++++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a0e36f3..d3212d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ pyhoca-cli (0.6.0.1-0x2go1) UNRELEASED; urgency=medium
     - Fix failing password-only authentication.
     - pyhoca/cli/frontend.py: Check directly after authentication, if the
       remote host has the X2Go Server software installed.
+    - pyhoca/cli/frontend.py: Be more real-time realistic and user friendly
+      with notice log messages after authentication.
   * debian/control:
     + Set Section: from "python" to "x11". More appropriate.
     + Bump versioned D on python3-x2go to (0.6.0.2-0~).
diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 411045a..151ec37 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -656,6 +656,9 @@ class PyHocaCLI(x2go.X2GoClient):
         if not self.is_x2goserver(self.x2go_session_hash):
             self._runtime_error('the remote server does not have the X2Go Server software installed', exitcode=1337)
 
+        self._pyhoca_logger('authentication has been successful, launching session...', loglevel=x2go.loglevel_NOTICE, )
+
+
     def MainLoop(self):
         """\
         Start the main loop of this application.
@@ -682,6 +685,9 @@ class PyHocaCLI(x2go.X2GoClient):
                 self.list_profiles()
                 sys.exit(0)
 
+            if self.args.resume or self.args.new:
+                self._pyhoca_logger("give the X2Go session some time to come up...", loglevel=x2go.loglevel_NOTICE, )
+
             if self.args.resume:
                 self.resume_session(self.x2go_session_hash)
 
@@ -703,10 +709,6 @@ class PyHocaCLI(x2go.X2GoClient):
 
             if not (self.args.new or self.args.resume or self.args.share_desktop or self.args.session_profile):
                 sys.exit(0)
-
-            if self.args.resume or self.args.new:
-                self._pyhoca_logger("give the X2Go session some time to come up...", loglevel=x2go.loglevel_NOTICE, )
-
             i=0
             while 0 < self.get_session(self.x2go_session_hash).get_progress_status() < 100:
                 sleep(1)

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git


More information about the x2go-commits mailing list