[X2go-Commits] python-x2go.git - master (branch) updated: 0.1.1.4-188-gf863f72

X2Go dev team git-admin at x2go.org
Fri Apr 13 22:30:48 CEST 2012


The branch, master has been updated
       via  f863f7210b44b147bac4399836480338fd414f01 (commit)
      from  bcf44041c1161e109109305887351c5ac60152fd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f863f7210b44b147bac4399836480338fd414f01
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Apr 13 22:30:41 2012 +0200

    add some capturing code for bad implementations of published applications menu tree queries in client applications

-----------------------------------------------------------------------

Summary of changes:
 x2go/backends/control/_stdout.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

The diff of changes is:
diff --git a/x2go/backends/control/_stdout.py b/x2go/backends/control/_stdout.py
index 336ac97..c39db0b 100644
--- a/x2go/backends/control/_stdout.py
+++ b/x2go/backends/control/_stdout.py
@@ -149,7 +149,9 @@ class X2goControlSessionSTDOUT(paramiko.SSHClient):
             self.set_missing_host_key_policy(paramiko.AutoAddPolicy())
 
         self.session_died = False
+
         self.published_applications_no_submenus = published_applications_no_submenus
+        self._already_querying_published_applications = False
 
     def get_hostname(self):
         return self.hostname
@@ -625,6 +627,12 @@ class X2goControlSessionSTDOUT(paramiko.SSHClient):
 
         """
 
+        if self._already_querying_published_applications:
+            self.logger('This control session instance is currently already querying the published applications menu tree for session profile %s. Whenever this warning pops up in your log file it means that you should fix your client implementation code. Only call this method once per session profile!!!' % self.profile_name, loglevel=log.loglevel_WARN)
+            return None
+        else:
+            self._already_querying_published_applications = True
+
         if defaults.X2GOCLIENT_OS != 'Windows' and lang is None:
             lang = locale.getdefaultlocale()[0]
         elif lang is None:


hooks/post-receive
-- 
python-x2go.git (Python X2Go Client API)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).




More information about the x2go-commits mailing list