[X2Go-Commits] [python-x2go] 05/09: X2GoSessionInfo: Add is_initialized() method.

git-admin at x2go.org git-admin at x2go.org
Fri Jul 19 19:42:45 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository python-x2go.

commit 89dd84dc3280f1ba96674c014636a41c27a5065b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Fri Jul 19 17:29:09 2019 +0200

    X2GoSessionInfo: Add is_initialized() method.
---
 debian/changelog            | 1 +
 x2go/backends/info/plain.py | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8aaa8b6..33adf8f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-x2go (0.6.0.3-0x2go1) UNRELEASED; urgency=medium
     - X2GoSessionInfo: Handle non-initialized X2GoSessionInfo instance
       more gracefully.
     - X2GoSessionInfo: Cache virtually immutable session type.
+    - X2GoSessionInfo: Add is_initialized() method.
     - X2GoTerminalSession: Fix __doc__ string of constructor.
 
  -- X2Go Release Manager <git-admin at x2go.org>  Sat, 01 Dec 2018 02:16:45 +0100
diff --git a/x2go/backends/info/plain.py b/x2go/backends/info/plain.py
index 52c672d..c16b198 100644
--- a/x2go/backends/info/plain.py
+++ b/x2go/backends/info/plain.py
@@ -296,6 +296,14 @@ class X2GoServerSessionInfo(object):
         """
         return self.protected
 
+    def is_initialized(self):
+        """\
+        Check if this session info data structure has been initialized.
+
+
+        """
+        return self.initialized
+
     def get_status(self):
         """\
         Retrieve the session's status from this session info data structure.

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/python-x2go.git


More information about the x2go-commits mailing list