[X2Go-Commits] python-x2go.git - brokerclient (branch) updated: 0.1.0.3-54-gfd7f5a8

X2Go dev team git-admin at x2go.org
Tue Jan 7 16:20:45 CET 2014


The branch, brokerclient has been updated
       via  fd7f5a812840885bdbbd04cb2081a8a055aaba43 (commit)
      from  c86a2cd4b0db04d25b01f7a6ce84159fe9e7ec06 (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 -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 x2go/session.py |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

The diff of changes is:
diff --git a/x2go/session.py b/x2go/session.py
index 0a53ad7..44986e3 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -1204,6 +1204,17 @@ class X2goSession(object):
         return False
     __session_ok = session_ok
 
+    def color_depth_from_session_name(self):
+        """\
+        Extract color depth from session name.
+
+        @return: the session's color depth (as found in the session name)
+        @rtype: C{str}
+
+        """
+        return int(self.get_session_name().split('_')[2][2:])
+    __color_depth_from_session_name = color_depth_from_session_name
+
     def is_color_depth_ok(self):
         """\
         Check if this session will display properly with the local screen's color depth.
@@ -1213,10 +1224,8 @@ class X2goSession(object):
         @rtype C{bool}
 
         """
-        if self.has_terminal_session():
-            return utils.is_color_depth_ok(depth_session=self.terminal_session.color_depth(), depth_local=utils.local_color_depth())
-        else:
-            return None
+        return utils.is_color_depth_ok(depth_session=self.color_depth_from_session_name(), depth_local=utils.local_color_depth())
+        __is_color_depth_ok = is_color_depth_ok
 
     def is_connected(self):
         """\


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