[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.43.0-13-g2583a0e

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:30:21 CET 2014


The branch, build-baikal has been updated
       via  2583a0e48fda201dcb77d7b02cf1002458f9efb0 (commit)
      from  a432308c5f4e7452793b6baf3fd5650c6ef5191c (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 |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/x2go/session.py b/x2go/session.py
index 54f0470..4a66e02 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -358,7 +358,11 @@ class X2goSession(object):
         @rtype: C{str}
 
         """
-        return self.control_session.get_transport().get_username()
+        # try to retrieve the username from the control session, if already connected
+        try:
+            return self.control_session.get_transport().get_username()
+        except AttributeError:
+            return self.control_params['username']
     __get_username = get_username
 
 


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