This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository pyhoca-cli. from 0adac3b debian/control: Bump versioned D on python3-x2go to (>= 0.6.0.2-0~). new 7585c67 pyhoca/cli/frontend.py: Be more real-time realistic and user friendly with notice log messages after authentication. new 192ee99 pyhoca/cli/frontend.py: rephrase auth success message slightly. new 20a1cc9 Catch HOOK_no_such_command and bail out if the server does not know how to execute the given session command. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 5 +++++ pyhoca/cli/frontend.py | 18 ++++++++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git
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@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
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository pyhoca-cli. commit 192ee99fa63d14e6844827e3edefecac7e549a69 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Mon Nov 26 10:30:23 2018 +0100 pyhoca/cli/frontend.py: rephrase auth success message slightly. --- debian/changelog | 1 + pyhoca/cli/frontend.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d3212d2..cfc2c17 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ pyhoca-cli (0.6.0.1-0x2go1) UNRELEASED; urgency=medium 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. + - pyhoca/cli/frontend.py: rephrase auth success message slightly. * 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 151ec37..483c2d4 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -656,7 +656,7 @@ 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, ) + self._pyhoca_logger('authentication has been successful', loglevel=x2go.loglevel_NOTICE, ) def MainLoop(self): -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository pyhoca-cli. commit 20a1cc9a222004386f38a23684cfac132ce7ea5d Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Sat Dec 1 11:57:31 2018 +0100 Catch HOOK_no_such_command and bail out if the server does not know how to execute the given session command. --- debian/changelog | 2 ++ pyhoca/cli/frontend.py | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index cfc2c17..0141ac6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ pyhoca-cli (0.6.0.1-0x2go1) UNRELEASED; urgency=medium - pyhoca/cli/frontend.py: Be more real-time realistic and user friendly with notice log messages after authentication. - pyhoca/cli/frontend.py: rephrase auth success message slightly. + - Catch HOOK_no_such_command and bail out if the server does not + know how to execute the given session command. * 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 483c2d4..072c915 100644 --- a/pyhoca/cli/frontend.py +++ b/pyhoca/cli/frontend.py @@ -69,6 +69,14 @@ class PyHocaCLI(x2go.X2GoClient): def _runtime_error(self, m, exitcode=-1): runtime_error(m, exitcode=exitcode) + def HOOK_no_such_command(self, *args, **kwargs): + x2go.X2GoClient.HOOK_no_such_command(self, *args, **kwargs) + if len(args) == 0: + cmd=kwargs['cmd'] + else: + cmd=args[0] + self._runtime_error("The remote X2Go Server does not know how to execute the command '{cmd}'. Aborting...".format(cmd=cmd)) + def list_sessions(self, s_hash): """\ List up server-side available sessions for the logged in user. -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/pyhoca-cli.git