[X2Go-Commits] python-x2go.git - release/0.4.0.x (branch) updated: 0.1.0.3-53-gc86a2cd
X2Go dev team
git-admin at x2go.org
Tue Jan 7 16:17:15 CET 2014
The branch, release/0.4.0.x has been updated
via c86a2cd4b0db04d25b01f7a6ce84159fe9e7ec06 (commit)
from a27899e1b0669f46a6d9522ab52ebdf7a05a17c7 (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:
debian/changelog | 1 +
x2go/client.py | 17 +++++++++++++++++
2 files changed, 18 insertions(+)
The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 110827c..e231279 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -31,6 +31,7 @@ python-x2go (0.1.1.0-0~x2go1) UNRELEASED; urgency=low
the X2go server (SSHd) denies the tunnel setup.
- Detect local color depth and use it as default for new sessions.
- Add compatibility check methods for color depth.
+ - Provide X2goClient method for retrieval of session by session name.
-- Mike Gabriel <mike.gabriel at das-netzwerkteam.de> Thu, 23 Jun 2011 08:34:14 +0200
diff --git a/x2go/client.py b/x2go/client.py
index 9cce864..49abce2 100644
--- a/x2go/client.py
+++ b/x2go/client.py
@@ -970,6 +970,23 @@ class X2goClient(object):
with_session = __get_session
"""Alias for L{get_session()}."""
+ def get_session_of_session_name(self, session_name, return_object=False):
+ """\
+ Retrieve session UUID or L{X2goSession} for session name
+ <session_name> from the session registry.
+
+ @param session_name: the X2go session's UUID registry hash
+ @type session_name: C{str}
+ @param return_object: session UUID hash or L{X2goSession} instance wanted?
+ @type return_object: C{bool}
+
+ @return: the X2go session's UUID registry hash or L{X2goSession} instance
+ @rtype: C{str} or L{X2goSession} instance
+
+ """
+ return self.session_registry.get_session_of_session_name(session_name=session_name, return_object=return_object)
+ __get_session_of_session_name = get_session_of_session_name
+
def get_session_name(self, session_uuid):
"""\
Retrieve the server-side X2go session name for the session that has
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