The branch, master 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 ----------------------------------------------------------------- commit 59794584018d08a3ade4484f28a0abf797c13e26 Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de> Date: Wed Nov 2 06:31:06 2011 +0100 fix new shared folders code in profile manager for Win32 ----------------------------------------------------------------------- Summary of changes: pyhoca/wxgui/profilemanager.py | 10 ++++++---- 1 files 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)).