[X2Go-Commits] [python-x2go] 02/02: Make sure X2GoClientXConfig config file really gets written to disk (after we changed the internas of X2GoIniFile for this new major release).

git-admin at x2go.org git-admin at x2go.org
Mon Apr 14 16:39:22 CEST 2014


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

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

commit e630ea606b085cb7e9f09560f813de24e7e95443
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Apr 14 16:39:18 2014 +0200

    Make sure X2GoClientXConfig config file really gets written to disk (after we changed the internas of X2GoIniFile for this new major release).
---
 debian/changelog |    2 ++
 x2go/xserver.py  |   14 ++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9e215ab..fc101a9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -26,6 +26,8 @@ python-x2go (0.5.0.0-0x2go1) UNRELEASED; urgency=low
     - Handle broker setups that don't require credentials. Connection can
       be established simply by leaving the password (and authid) empty.
     - Fix detection of matching path names in X2GoIniFiles.
+    - Make sure X2GoClientXConfig config file really gets written to disk
+      (after we changed the internas of X2GoIniFile for this new major release).
   * debian/control:
     + Add dependencies: python-requests, python-simplejson.
   * python-x2go.spec:
diff --git a/x2go/xserver.py b/x2go/xserver.py
index 7118836..190e3d9 100644
--- a/x2go/xserver.py
+++ b/x2go/xserver.py
@@ -91,6 +91,20 @@ class X2GoClientXConfig(inifiles.X2GoIniFile):
             self.write_user_config = True
             self.write()
 
+    def write(self):
+        """\
+        Store the Xserver configuration to the storage backend (i.e. on disk).
+
+        For writing the first of the C{config_files} specified on instance construction
+        that is writable will be used.
+
+        @return: C{True} if the user config file has been successfully written, C{False} otherwise.
+        @rtype: C{bool}
+
+        """
+        self._write_user_config = self.write_user_config
+        self._X2GoIniFile__write()
+
     def get_xserver_config(self, xserver_name):
         """\
         Retrieve the XServer configuration (from the xconfig file) for the given XServer application.

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git



More information about the x2go-commits mailing list