[X2Go-Commits] python-x2go.git - release/0.4.0.x (branch) updated: 6a2e21f96071f21a4115c4fcb5035584d70e0c4b

X2Go dev team git-admin at x2go.org
Tue Jan 7 16:16:19 CET 2014


The branch, release/0.4.0.x has been updated
       via  6a2e21f96071f21a4115c4fcb5035584d70e0c4b (commit)
      from  f305e1f4d7f9465d52990a1938e4323cccc7bf86 (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/backends/terminal/_stdout.py |    1 +
 x2go/inifiles.py                  |    8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/x2go/backends/terminal/_stdout.py b/x2go/backends/terminal/_stdout.py
index fbbe331..224fea9 100644
--- a/x2go/backends/terminal/_stdout.py
+++ b/x2go/backends/terminal/_stdout.py
@@ -111,6 +111,7 @@ class X2goSessionParams(object):
         """
         session_type = self.session_type
         cmd = self.cmd
+
         if session_type == "desktop":
             self.session_type = 'D'
             return
diff --git a/x2go/inifiles.py b/x2go/inifiles.py
index 4f993b8..3e3c76a 100644
--- a/x2go/inifiles.py
+++ b/x2go/inifiles.py
@@ -92,10 +92,12 @@ class X2goIniFile(object):
         self.iniConfig = ConfigParser.SafeConfigParser()
         self.iniConfig.optionxform = str
 
+        _create_file = False
         for file_name in config_files:
             if file_name.startswith(_current_home):
                 if not os.path.exists(file_name):
                     utils.touch_file(file_name)
+                    _create_file = True
                 break
 
         self.logger('proposed config files are %s' % config_files, log.loglevel_INFO, )
@@ -110,6 +112,10 @@ class X2goIniFile(object):
 
         self.config_files = _found_config_files
         self._fill_defaults()
+
+        if _create_file:
+            self.write_user_config = True
+            self.write()
         
     def __repr__(self):
         result = 'X2goIniFile('
@@ -173,7 +179,7 @@ class X2goIniFile(object):
         if not self.iniConfig.has_section(section):
             self.iniConfig.add_section(section)
         self._storeValue(section, key, value)
-        self.write_config = True
+        self.write_user_config = True
 
     def write(self):
         """\


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