This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository python-x2go. from 191b92e Fix various hrefs in __doc__ strings. new a0d270f Fix creating/renaming/reconfiguring session profiles. Handle host option properly (as list). The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: debian/changelog | 2 ++ x2go/backends/profiles/base.py | 1 + x2go/backends/profiles/file.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository python-x2go. commit a0d270fd26ba3d2d32aa2cbfbea99f7d62330b0e Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Tue Oct 14 22:10:29 2014 +0200 Fix creating/renaming/reconfiguring session profiles. Handle host option properly (as list). --- debian/changelog | 2 ++ x2go/backends/profiles/base.py | 1 + x2go/backends/profiles/file.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4f99d27..3453629 100644 --- a/debian/changelog +++ b/debian/changelog @@ -114,6 +114,8 @@ python-x2go (0.5.0.0-0x2go1) UNRELEASED; urgency=low we have to destroy the corresponding X2GoTerminalSession() to trigger a proper cleanup of that instance. - Fix various hrefs in __doc__ strings. + - Fix creating/renaming/reconfiguring session profiles. Handle host + option properly (as list). * debian/control: + Add dependencies: python-requests, python-simplejson. + Add R (python-x2go): sshfs. diff --git a/x2go/backends/profiles/base.py b/x2go/backends/profiles/base.py index 3a42452..fe53a96 100644 --- a/x2go/backends/profiles/base.py +++ b/x2go/backends/profiles/base.py @@ -502,6 +502,7 @@ class X2GoSessionProfiles(): """ if profile_id is None or profile_id in self.profile_ids: profile_id = utils._genSessionProfileId() + self.session_profiles[profile_id] = self.defaultSessionProfile if 'name' not in kwargs.keys(): raise X2GoProfileException('session profile parameter ,,name\'\' is missing in method parameters') diff --git a/x2go/backends/profiles/file.py b/x2go/backends/profiles/file.py index ee4debf..b604a30 100644 --- a/x2go/backends/profiles/file.py +++ b/x2go/backends/profiles/file.py @@ -112,10 +112,10 @@ class X2GoSessionProfiles(base.X2GoSessionProfiles, inifiles.X2GoIniFile): except KeyError: pass def _update_value(self, profile_id, option, value): + self.session_profiles[profile_id][option] = value if option == 'host': value = ','.join(value) self._X2GoIniFile__update_value(profile_id, option, value) - self.session_profiles[profile_id][option] = value def _get_profile_parameter(self, profile_id, option, key_type): return self.get(profile_id, option, key_type) -- Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/python-x2go.git