[X2Go-Commits] python-x2go.git - master (branch) updated: 0.4.0.7-2-g60eebc8

X2Go dev team git-admin at x2go.org
Mon Aug 5 10:53:59 CEST 2013


The branch, master has been updated
       via  60eebc868465959b63f36c49f54ce73b00cce1e2 (commit)
      from  0c579d265133d482eae4e9a20928965ed3e177b8 (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 -----------------------------------------------------------------
commit 60eebc868465959b63f36c49f54ce73b00cce1e2
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Aug 5 10:53:57 2013 +0200

    Fix session profile updates with changes to the host parameter.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                |    3 ++-
 x2go/backends/profiles/_file.py |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index 5c32913..9f930ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 python-x2go (0.4.0.8-0~x2go1) UNRELEASED; urgency=low
 
-  * Continue development...
+  * New upstream version (0.4.0.8):
+    - Fix session profile updates with changes to the host parameter.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sat, 03 Aug 2013 22:32:30 +0200
 
diff --git a/x2go/backends/profiles/_file.py b/x2go/backends/profiles/_file.py
index 0b9eedb..31a11f3 100644
--- a/x2go/backends/profiles/_file.py
+++ b/x2go/backends/profiles/_file.py
@@ -346,7 +346,7 @@ class X2GoSessionProfilesFILE(inifiles.X2GoIniFile):
         else:
             return ''
 
-    def add_profile(self, profile_id=None, **kwargs):
+    def add_profile(self, profile_id=None, force_add=False, **kwargs):
         """\
         Add a new session profile.
 
@@ -365,7 +365,7 @@ class X2GoSessionProfilesFILE(inifiles.X2GoIniFile):
         if 'name' not in kwargs.keys():
             raise X2GoProfileException('session profile parameter ,,name\'\' is missing in method parameters')
 
-        if kwargs['name'] in self.profile_names:
+        if kwargs['name'] in self.profile_names and not force_add:
             raise X2GoProfileException('a profile of name ,,%s\'\' already exists' % kwargs['name'])
 
         for key, value in kwargs.items():


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