[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 0.1.0.9-1-g5979458
X2Go dev team
git-admin at x2go.org
Tue Aug 27 13:21:51 CEST 2013
The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
via 59794584018d08a3ade4484f28a0abf797c13e26 (commit)
from d4b44d98c629d381d8582a4840d911e52e045965 (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:
pyhoca/wxgui/profilemanager.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
The diff of changes is:
diff --git a/pyhoca/wxgui/profilemanager.py b/pyhoca/wxgui/profilemanager.py
index 49f3ac2..e482644 100644
--- a/pyhoca/wxgui/profilemanager.py
+++ b/pyhoca/wxgui/profilemanager.py
@@ -24,6 +24,7 @@ import copy
import sys
import locale
+import re
import x2go.log as log
import x2go.utils as utils
@@ -916,11 +917,12 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
for _shared_folder in _shared_folders:
# support path names with and without ":" as separator between path and autoconnect flag (pyhoca-gui < 0.1.0.9)
- if ":" not in _shared_folder:
+ if not re.match('^.*:(1|0)$', _shared_folder):
_shared_folder = "%s:1" % _shared_folder
- _shared_folder_path = _shared_folder.split(':')[0]
- if int(_shared_folder.split(':')[1]):
+ print _shared_folder
+ _shared_folder_path = ":".join(_shared_folder.split(':')[:-1])
+ if int(_shared_folder.split(':')[-1]):
_shared_folder_autoconnect = _("automatically")
else:
_shared_folder_autoconnect = _("manually")
@@ -929,7 +931,7 @@ class PyHocaGUI_ProfileManager(wx.Dialog):
idx = self.SharedFoldersList.InsertStringItem(0, _shared_folder_path)
self.SharedFoldersList.SetStringItem(idx, 1, _shared_folder_autoconnect)
- if int(_shared_folder.split(':')[1]):
+ if int(_shared_folder.split(':')[-1]):
self.SharedFoldersList.CheckItem(idx)
self.AddSharedFolderPathButton.Enable(False)
hooks/post-receive
--
pyhoca-gui.git (Python X2Go Client (wxPython GUI))
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 "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).
More information about the x2go-commits
mailing list