[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.1.1.4-186-gcd23929

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


The branch, build-baikal has been updated
       via  cd23929d584c1457342d64360e15a4f3bbf1db33 (commit)
      from  b75923d05aefbde569c48147b0761855dbd1d8b0 (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 |    2 ++
 x2go/session.py  |   15 ++++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 2838876..29a7da3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -86,6 +86,8 @@ python-x2go (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
     - Export X2GO_SESSION and PULSE_CLIENTCONFIG to published applications.
     - When starting pulseaudio on Windows use --exit-idle-time=0.
     - Fix X2goSession.get_shared_folders() method on Windows.
+    - No list_sessions() calls on server when querying the status of an
+      X2goSession instance.
   * Depend on python-xlib.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sat, 28 Sep 2012 01:44:21 +0100
diff --git a/x2go/session.py b/x2go/session.py
index 567b9d4..130c4da 100644
--- a/x2go/session.py
+++ b/x2go/session.py
@@ -1769,7 +1769,7 @@ class X2goSession(object):
         return self.connected
     __is_connected = is_connected
 
-    def is_running(self):
+    def is_running(self, update_status=False):
         """\
         Test if the L{X2goSession}'s terminal session is up and running.
 
@@ -1777,6 +1777,9 @@ class X2goSession(object):
         @rtype: C{bool}
 
         """
+        if not update_status:
+            return self.running
+
         if self.is_connected():
             self.running = self.control_session.is_running(self.get_session_name())
             if self.running:
@@ -1788,7 +1791,7 @@ class X2goSession(object):
         return self.running
     __is_running = is_running
 
-    def is_suspended(self):
+    def is_suspended(self, update_status=False):
         """\
         Test if the L{X2goSession}'s terminal session is in suspended state.
 
@@ -1796,6 +1799,9 @@ class X2goSession(object):
         @rtype: C{bool}
 
         """
+        if not update_status:
+            return self.suspended
+
         if self.is_connected():
             self.suspended = self.control_session.is_suspended(self.get_session_name())
             if self.suspended:
@@ -1807,7 +1813,7 @@ class X2goSession(object):
         return self.suspended
     __is_suspended = is_suspended
 
-    def has_terminated(self):
+    def has_terminated(self, update_status=False):
         """\
         Test if the L{X2goSession}'s terminal session has terminated.
 
@@ -1815,6 +1821,9 @@ class X2goSession(object):
         @rtype: C{bool}
 
         """
+        if not update_status:
+            return self.terminated
+
         if self.is_connected():
             self.terminated = not self.virgin and self.control_session.has_terminated(self.get_session_name())
             if self.terminated:


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