[X2Go-Commits] python-x2go.git - brokerclient (branch) updated: 0.0.42.0-2-g2df7422

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


The branch, brokerclient has been updated
       via  2df7422896389c69a95e4134655a99c1f60645da (commit)
      from  6fa45031b5d85c49e78bfcd86bf429ff1da06311 (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/profiles/_file.py |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

The diff of changes is:
diff --git a/x2go/backends/profiles/_file.py b/x2go/backends/profiles/_file.py
index 9548902..8fb14e5 100644
--- a/x2go/backends/profiles/_file.py
+++ b/x2go/backends/profiles/_file.py
@@ -119,6 +119,14 @@ class X2goSessionProfilesFILE(inifiles.X2goIniFile):
         except KeyError:
             return types.StringType
 
+    def get_type(self, section, key):
+        """\
+        STILL UNDOCUMENTED
+
+        """
+        # we have to handle the get_type method separately...
+        return self.get_profile_option_type(key)
+
     def get_profile_config(self, profile_id_or_name=None, profile_id=None):
         """\
         STILL UNDOCUMENTED
@@ -240,10 +248,11 @@ class X2goSessionProfilesFILE(inifiles.X2goIniFile):
         profile_id = section
         if key == 'name':
             profile_name = value
+            current_profile_name = self.get_value(section, key)
             if not profile_name:
                 raise X2goProfileException('profile name for profile id %s may not be empty' % profile_id)
             else:
-                if profile_name in self.profile_names:
+                if profile_name != current_profile_name and profile_name in self.profile_names:
                     raise X2goProfileException('a profile of name ,,%s'' already exists' % profile_name)
             self._cached_profile_names = []
         inifiles.X2goIniFile.update_value(self, section, key, value)


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