[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.41.0-3-g313fe03

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:26:14 CET 2014


The branch, build-baikal has been updated
       via  313fe031ef65286789af8deb6e4a2be28951d4ab (commit)
      from  b1f9027c97a81b7fcd86238321b7319cd1327088 (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 |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

The diff of changes is:
diff --git a/x2go/backends/profiles/_file.py b/x2go/backends/profiles/_file.py
index d1c9ead..9548902 100644
--- a/x2go/backends/profiles/_file.py
+++ b/x2go/backends/profiles/_file.py
@@ -232,6 +232,22 @@ class X2goSessionProfilesFILE(inifiles.X2goIniFile):
         self._cached_profile_ids = []
         self._cached_profile_names = []
 
+    def update_value(self, section, key, value):
+        """\
+        STILL UNDOCUMENTED
+
+        """
+        profile_id = section
+        if key == 'name':
+            profile_name = value
+            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:
+                    raise X2goProfileException('a profile of name ,,%s'' already exists' % profile_name)
+            self._cached_profile_names = []
+        inifiles.X2goIniFile.update_value(self, section, key, value)
+
     def check_profile_id_or_name(self, profile_id_or_name):
         """\
         STILL UNDOCUMENTED


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