[X2go-Commits] python-x2go.git - master (branch) updated: 0.1.1.4-110-g5aa1c6f

X2go dev team git-admin at x2go.org
Wed Feb 22 00:32:06 CET 2012


The branch, master has been updated
       via  5aa1c6f22f593c1efb58c1f0342746f5772ea540 (commit)
      from  e41db1b0a0321c75afd35d46daf49ed66dc60875 (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 5aa1c6f22f593c1efb58c1f0342746f5772ea540
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Feb 22 00:31:56 2012 +0100

    Tolerate names containing "-" characters.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog |    1 +
 x2go/utils.py    |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index f345262..b74c497 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,7 @@ python-x2go (0.1.2.0-0~x2go1) UNRELEASED; urgency=low
     - Handle session titles that just contain blanks (e.g. " ") gracefully.
     - Fix X2Go desktop sharing support.
     - New feature, allow/fix sessions on localhost system.
+    - Tolerate names containing "-" characters.
   * Depend on python-xlib.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sat, 28 Sep 2012 01:44:21 +0100
diff --git a/x2go/utils.py b/x2go/utils.py
index af15915..87c053d 100644
--- a/x2go/utils.py
+++ b/x2go/utils.py
@@ -273,7 +273,7 @@ def session_names_by_timestamp(session_infos):
 
     """
     session_names = session_infos.keys()
-    sortable_session_names = [ '%s|%s' % (session_name.split('-')[2].split('_')[0], session_name) for session_name in session_names ]
+    sortable_session_names = [ '%s|%s' % (session_name.split('-')[-1].split('_')[0], session_name) for session_name in session_names ]
     sortable_session_names.sort()
     return [ session_name.split('|')[1] for session_name in sortable_session_names ]
 


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