The branch, master 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 ----------------------------------------------------------------- commit fd7f5a812840885bdbbd04cb2081a8a055aaba43 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Fri Jun 24 01:43:55 2011 +0200 fix/improval of color depth check code ----------------------------------------------------------------------- Summary of changes: x2go/session.py | 17 +++++++++++++---- 1 files 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).